/* Shared launch UI: page content stays independent; mobile gets its own navigation. */
:root { --launch-red:#b33128; --launch-ink:#26343b; --launch-muted:#617079; --launch-line:#e1e5e5; }
[hidden] { display:none !important; }
body { color:var(--launch-ink); -webkit-font-smoothing:antialiased; }
button, input, select, textarea { font-family:inherit; }
button, a { -webkit-tap-highlight-color:transparent; }
:is(button,a,input,select,textarea,summary):focus-visible { outline:3px solid #b56835; outline-offset:3px; }
#mobile-navigation, #mobile-detail-actions, #mobile-category-toggle { display:none; }
.mobile-sheet:not([open]) { display:none; }
.mobile-sheet { color:var(--launch-ink); background:#fff; border:0; border-radius:16px 16px 0 0; padding:0; width:100%; max-width:560px; max-height:85dvh; margin:auto auto 0; box-shadow:0 -12px 60px #19344120; }
.mobile-sheet::backdrop { background:#122c3f70; }
.mobile-sheet-head { display:flex; align-items:center; justify-content:space-between; padding:12px 18px; border-bottom:1px solid var(--launch-line); position:sticky; top:0; background:#fff; z-index:2; }
.mobile-sheet-head h2 { margin:0; font-size:18px; font-weight:600; }
.mobile-sheet-head button { width:44px; height:44px; border:0; border-radius:50%; background:#f4f5f3; font-size:26px; color:#52616a; cursor:pointer; }
.mobile-destinations { padding:10px 20px; }
.mobile-destinations a { display:grid; grid-template-columns:1fr auto; gap:6px; text-decoration:none; color:var(--launch-ink); border-bottom:1px solid #e9ecec; padding:20px 0; }
.mobile-destinations a strong { font-size:17px; font-weight:600; }
.mobile-destinations a span { font-size:13px; color:var(--launch-muted); }
.mobile-destinations a i { grid-column:2; grid-row:1 / 3; align-self:center; font-style:normal; font-size:25px; color:#829098; }
.mobile-destinations a[aria-current] strong { color:var(--launch-red); }
.mobile-utility-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:16px 20px max(22px,env(safe-area-inset-bottom)); }
.mobile-utility-actions button, .mobile-utility-actions a { display:flex; justify-content:center; align-items:center; min-height:46px; border:1px solid var(--launch-line); background:#f9faf8; border-radius:5px; font-size:13px; color:var(--launch-ink); text-decoration:none; }
.feed-masonry { display:grid; columns:auto; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px 16px; align-items:start; }
.feed-card { margin:0; width:auto; min-width:0; }
.feed-empty { grid-column:1 / -1; }
.feed-image.missing { aspect-ratio:1; }
.feed-card .feed-variants { max-height:100px; overflow:auto; }
.feed-disclosure { color:#627077; font-size:12px; line-height:1.7; }
.feed-toolbar small, .feed-toolbar span, .factory-page .feed-disclosure { color:#627077; }
.feed-search p, .factory-page-heading p { color:#63717a; }
.factory-page .directory-industry, .directory-kicker small, .directory-actions small { color:#64737b; font-size:12px; }
.feed-card-actions a, .directory-actions a, .directory-actions button { min-height:40px; display:inline-flex; justify-content:center; align-items:center; }
.home-empty-panel { grid-column:1 / -1; padding:26px 28px; background:#f7f8f5; display:flex; gap:24px; align-items:center; border:1px solid var(--launch-line); }
.home-empty-panel h3 { font-size:18px; margin:0 0 8px; }
.home-empty-panel p { font-size:14px; color:#65737a; line-height:1.7; margin:0; }
.home-empty-panel a { color:var(--launch-red); text-decoration:none; white-space:nowrap; padding:10px 0; margin-left:auto; font-size:14px; }
.home-empty-panel a + a { margin-left:0; }
body[data-page="search-home"] .home-factory-grid:has(.home-empty-panel) { border:0; }
body[data-page="search-home"] .discovery-inner { padding:28px 0 24px; }
body[data-page="search-home"] .discovery-inner h1 { font-size:30px; }
body[data-page="search-home"] .discovery-description { color:#5e6b72; }
body[data-page="search-home"] .local-industry { border:1px solid #e4e7e7; border-radius:5px; padding-bottom:12px; overflow:hidden; }
body[data-page="search-home"] .local-industry :is(h3,.product-origin,.product-paths,.supply-state) { margin-left:12px; margin-right:12px; }
body[data-page="search-home"] .local-industry .supply-state { color:#62717a; font-size:11px; }
body[data-page="search-home"] .local-industry .product-paths { padding-top:4px; margin-top:8px; }
body[data-page="search-home"] .product-paths a { min-height:36px; }
body[data-page="search-home"] .local-industries { gap:18px 16px; }
body[data-page="search-home"] .block-head > a { color:#526773; }
body[data-page="search-home"] .legal-line { color:#63727a; }
.factory-page #factory-selection { font-size:13px; }
#feed-selection:empty { display:none; }
#feed-selection { margin:10px 0; }
#feed-selection button { min-height:44px; padding:8px 12px; border:1px solid #d5c3bd; border-radius:4px; color:#8b342d; background:#fff7f4; cursor:pointer; }
.prepare-form { display:grid; gap:16px; min-width:0; }
.prepare-form label { display:grid; gap:7px; font-size:14px; line-height:1.5; }
.prepare-form :is(input,textarea) { display:block; width:100%; min-width:0; min-height:46px; border:1px solid #cad2d5; border-radius:4px; background:#fff; color:var(--launch-ink); padding:11px 12px; font:inherit; }
.prepare-form textarea { resize:vertical; line-height:1.65; }
.prepare-form button[type="submit"] { min-height:46px; border:0; border-radius:4px; padding:12px 18px; color:#fff; background:var(--launch-red); font-size:15px; cursor:pointer; }
.prepare-form .form-note { margin:0; }
.prepare-form [data-prepared-output] { min-width:0; padding-top:6px; }
.prepare-form [data-prepared-output] p { color:#435851; }
.modal-backdrop { z-index:200; }
.portal-dialog { z-index:201; border-radius:8px; }
.modal-close { min-width:44px; min-height:44px; top:8px; right:8px; }
.portal-dialog .detail-dl div { display:grid; grid-template-columns:80px 1fr; gap:12px; border-bottom:1px solid var(--launch-line); padding:10px 0; }
.portal-dialog .detail-dl dd { margin:0; overflow-wrap:anywhere; }
@media (max-width:1200px) { .feed-masonry { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (min-width:721px) and (max-width:1100px) {
  #portal-header .navline { height:auto; flex-wrap:wrap; padding-block:12px; gap:12px; }
  #portal-header .portal-brand { margin-right:auto; }
  #portal-header .navline nav { order:3; width:100%; justify-content:space-between; }
  #portal-header .navline nav a { padding:13px 16px; font-size:14px; }
}
@media (max-width:950px) { .feed-masonry { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) {
  body.mobile-ready { padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
  .market-shell { width:calc(100% - 28px); }
  .mobile-ready #portal-header .topline { display:none; }
  .mobile-ready #portal-header .navline { height:64px; padding-block:8px; margin:0 auto; flex-wrap:nowrap; gap:12px; }
  .mobile-ready #portal-header .navline nav { display:none; }
  .mobile-ready #portal-header .portal-brand { margin:0 auto 0 0; }
  .mobile-ready #portal-header .portal-brand i { width:34px; height:38px; line-height:38px; font-size:22px; margin-right:8px; border-radius:3px; }
  .mobile-ready #portal-header .portal-brand b { font-size:21px; letter-spacing:1px; }
  .mobile-ready #portal-header .portal-brand small { font-size:10px; letter-spacing:1px; margin-top:2px; }
  .mobile-ready #portal-header .nav-actions { display:flex; width:auto; margin:0; }
  .mobile-ready #portal-header .nav-actions button { min-height:44px; padding:8px 12px; border-radius:4px; font-size:13px; white-space:nowrap; }
  .mobile-ready #portal-header .nav-actions button:first-child { display:none; }
  #mobile-navigation { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); position:fixed; inset:auto 0 0; padding:6px 7px calc(6px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #e0e5e6; z-index:100; box-shadow:0 -3px 18px #1c324807; }
  #mobile-navigation > :is(a,button) { min-height:52px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; background:none; border:0; color:#596c75; text-decoration:none; font-size:11px; padding:3px; cursor:pointer; }
  #mobile-navigation svg { width:22px; height:22px; }
  #mobile-navigation > [aria-current], #mobile-navigation > .is-current { color:var(--launch-red); font-weight:600; }
  #mobile-navigation.mobile-navigation-replaced { display:none; }
  #mobile-detail-actions { display:flex; gap:10px; position:fixed; inset:auto 0 0; padding:10px 14px calc(10px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid var(--launch-line); z-index:100; }
  #mobile-detail-actions :is(a,button) { min-height:46px; flex:1; display:flex; align-items:center; justify-content:center; border:1px solid var(--launch-line); border-radius:5px; text-decoration:none; color:var(--launch-ink); background:#fff; font-size:14px; }
  #mobile-detail-actions .primary { flex:1.5; background:var(--launch-red); border-color:var(--launch-red); color:#fff; }
  .mobile-keyboard-open :is(#mobile-navigation,#mobile-detail-actions) { display:none; }
  body[data-page="search-home"] .discovery-inner { padding:22px 0 18px; }
  body[data-page="search-home"] .discovery-inner h1 { font-size:25px; line-height:1.4; }
  body[data-page="search-home"] .discovery-description { font-size:13px; margin:8px 0 14px; }
  body[data-page="search-home"] .search-modes { margin-bottom:5px; gap:22px; }
  body[data-page="search-home"] .search-modes span { min-height:44px; display:flex; align-items:center; padding:5px 1px; }
  body[data-page="search-home"] .discovery-input input:not([type=hidden]) { font-size:16px; padding:11px 9px; }
  body[data-page="search-home"] .discovery-input button { min-height:44px; padding:10px 20px; }
  body[data-page="search-home"] .recommended-queries { gap:2px 16px; align-items:center; margin-top:8px; }
  body[data-page="search-home"] .recommended-queries a { min-height:36px; display:inline-flex; align-items:center; font-size:12px; }
  body[data-page="search-home"] .recommended-queries > span { display:none; }
  body[data-page="search-home"] .discovery-industries { padding:24px 0 28px; }
  body[data-page="search-home"] .block-head { gap:12px; margin-bottom:14px; align-items:center; }
  body[data-page="search-home"] .block-head h2 { font-size:21px; }
  body[data-page="search-home"] .block-head > a { font-size:12px; max-width:48%; text-align:right; line-height:1.5; }
  body[data-page="search-home"] .local-industries { gap:14px 10px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-page="search-home"] .local-industry h3 { font-size:15px; }
  body[data-page="search-home"] .product-paths a { min-height:44px; }
  body[data-page="search-home"] .home-factory-grid { grid-template-columns:1fr; }
  .home-empty-panel { padding:22px 18px; gap:12px; flex-wrap:wrap; }
  .home-empty-panel > div { width:100%; }
  .home-empty-panel a { margin-left:0; min-height:44px; display:flex; align-items:center; }
  .home-empty-panel h3 { font-size:17px; }
  .home-empty-panel p { font-size:13px; }
  body[data-page="search-home"] .origin-cities button { min-width:44px; min-height:44px; }
  body[data-page="search-home"] .origin-industry { min-height:80px; }
  body[data-page="search-home"] .origin-industry strong { font-size:14px; }
  body[data-page="search-home"] .origin-industry :is(small,p) { color:#64747a; }
  .feed-page { padding-top:18px; }
  .feed-search { display:block; padding-bottom:12px; }
  .feed-search h1, .factory-page-heading h1 { font-size:23px; }
  .feed-search p { margin-top:5px; }
  .feed-search form { margin-top:14px; }
  .feed-search input, #factory-search input { min-height:44px; font-size:16px; padding:10px; }
  .feed-search form button { font-size:14px; padding:10px 16px; }
  .mobile-ready .feed-layout, .mobile-ready .factory-page .feed-layout { grid-template-columns:1fr; gap:0; }
  .mobile-ready .feed-layout > .feed-sidebar { display:none; }
  #mobile-category-toggle { display:flex; align-items:center; gap:10px; width:100%; min-height:46px; text-align:left; border:1px solid var(--launch-line); border-radius:5px; background:#f6f7f4; color:#374d58; font-size:14px; padding:8px 12px; margin:0 0 14px; cursor:pointer; }
  #mobile-category-toggle svg { width:20px; height:20px; }
  #mobile-category-toggle span:last-child { margin-left:auto; font-size:22px; color:#77848b; }
  #mobile-category-dialog { max-height:88dvh; height:88dvh; overflow:hidden; }
  #mobile-category-dialog .feed-sidebar { display:block; position:static; width:100%; height:calc(88dvh - 70px); max-height:none; overflow:auto; background:#fff; border:0; border-radius:0; padding-bottom:env(safe-area-inset-bottom); }
  #mobile-category-dialog .feed-sidebar-title { display:none; }
  #mobile-category-dialog .feed-sidebar nav, #mobile-category-dialog .feed-proposal { display:block; max-height:none; }
  #mobile-category-dialog .feed-sidebar :is(summary,button) { min-height:46px; font-size:14px; }
  #mobile-category-dialog .feed-sidebar details button { padding:12px 25px; }
  .feed-masonry { gap:12px 10px; }
  .feed-card { border-radius:5px; }
  .feed-card h3 { font-size:15px; }
  .feed-card .feed-variants { padding:0 10px 10px; max-height:90px; }
  .feed-variants button { min-height:44px; line-height:1.5; }
  .feed-card-actions { flex-wrap:wrap; gap:6px; }
  .feed-card-actions a { min-height:44px; }
  .feed-chip-list { max-height:110px; overflow:auto; }
  .feed-chip-list button { min-height:44px; }
  .feed-toolbar { gap:5px; padding:10px 0; }
  .feed-toolbar small { font-size:11px; }
  .feed-disclosure { margin:9px 0 13px; font-size:11px; }
  .factory-page .feed-results { padding:14px; margin-left:0; border-left:0; min-height:0; }
  .factory-page .factory-filters { flex-wrap:wrap; gap:10px; }
  .factory-page .factory-filters label { min-width:40%; font-size:12px; }
  .factory-page .factory-filters select { min-height:44px; }
  .directory-card { grid-template-columns:76px minmax(0,1fr); gap:12px; }
  .directory-actions { grid-column:1 / -1; }
  .directory-actions a, .directory-actions button { min-height:44px; }
  .factory-page .feed-toolbar { flex-wrap:wrap; }
  #portal-footer .footer-grid { gap:22px; }
  #portal-footer .footer-note { line-height:1.8; padding-bottom:20px; }
  #toast { bottom:calc(85px + env(safe-area-inset-bottom)); z-index:150; }
  .portal-dialog { padding:26px 20px 20px; max-height:85dvh; }
  .portal-dialog h2 { font-size:22px; padding-right:24px; margin-bottom:16px; }
  .prepare-form :is(input,textarea) { font-size:16px; }
  .channel-hero { padding-top:24px; }
  .channel-hero h1 { font-size:26px; }
  .request-layout { grid-template-columns:minmax(0,1fr); }
  .request-layout > * { min-width:0; }
  .request-channel .hero-action { position:static; margin-top:10px; min-height:46px; }
  .result-toolbar { height:auto; min-height:54px; gap:10px; flex-wrap:wrap; padding:12px; }
  .buy-row { grid-template-columns:auto minmax(0,1fr); }
  .buy-actions { grid-column:2; flex-wrap:wrap; }
  .dialog-actions { flex-wrap:wrap; }
  .dialog-actions button { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) { .mobile-ready * { scroll-behavior:auto !important; transition:none !important; } }
