/* Shared phone layout. Desktop layouts continue to use their page styles. */
.mobile-nav,.mobile-config-toggle,.mobile-analysis-action{display:none}
.mobile-config-content{display:contents}
@media(max-width:760px){
  :root{--mobile-nav-height:70px;--mobile-safe:env(safe-area-inset-bottom,0px)}
  html{scroll-padding-top:85px}
  body.gain-mobile-ready{padding-bottom:calc(var(--mobile-nav-height) + var(--mobile-safe));-webkit-text-size-adjust:100%}
  body:has(.auth-page){padding-bottom:0}
  .mobile-nav{position:fixed;inset:auto 0 0;z-index:70;height:calc(var(--mobile-nav-height) + var(--mobile-safe));padding:7px 12px calc(7px + var(--mobile-safe));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;background:#071d2ff5;border-top:1px solid #345269;box-shadow:0 -8px 25px #020b1733;backdrop-filter:blur(18px);font-family:system-ui,-apple-system,"Microsoft JhengHei",sans-serif;box-sizing:border-box}
  .mobile-nav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:12px;min-width:0;color:#8faec2;text-decoration:none;font-size:11px;font-weight:500;line-height:1.4;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
  .mobile-nav a[aria-current=page]{color:#79dfff;background:#153b4d}
  .mobile-nav a[aria-current=page]::before{content:"";position:absolute;top:-7px;width:22px;height:2px;background:#79dfff;border-radius:2px}
  .mobile-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
  .mobile-nav a:focus-visible{outline:2px solid #79dfff;outline-offset:-2px}
  .page{padding:22px 16px 30px;min-height:calc(100svh - 160px)}
  h1{font-size:26px;letter-spacing:0}
  h2{font-size:20px}
  .eyebrow{font-size:10px;letter-spacing:1.5px}
  .panel{padding:20px;border-radius:16px}
  .btn,.btn-small,.icon-btn{min-height:44px}
  .icon-btn{min-width:44px}
  .btn{border-radius:10px;font-size:14px}
  .btn-small{font-size:12px}
  input,select,.odds-row input,.market-fields select,.market-fields .market-line,.market-fields .market-custom,.config-panel input{font-size:16px;min-height:46px;border-radius:9px}
  .field>span,.field>label{font-size:13px}
  .field small{font-size:12px;line-height:1.7}
  .section-head{gap:12px;margin-bottom:16px}
  .section-head h2{font-size:20px}
  .preview-ribbon{font-size:10px;padding:5px 12px;letter-spacing:0}
  .member-header{position:sticky;top:0;z-index:55;display:flex;flex-wrap:nowrap;padding:11px 16px;gap:8px;background:#071a2df5;backdrop-filter:blur(16px)}
  .member-header .brand-symbol{width:38px}
  .member-header .brand-zh{width:58px}
  .member-header .brand-en,.member-header .avatar,.member-header .member-menu,.member-header .member-nav{display:none!important}
  .member-actions{gap:12px;margin-left:auto}
  .member-actions .star-count{font-size:13px;gap:4px}
  .member-actions .star-count .small,.member-actions>[data-wallet]{display:none}
  .member-header .language-switch summary{min-height:40px;font-size:11px;border-radius:9px}
  .member-header .language-switch svg{display:block;width:15px}
  .member-footer{display:flex;gap:15px;padding:20px 16px;font-size:10px;flex-wrap:wrap}
  .language-options{z-index:80}
  .page-heading{gap:12px;align-items:flex-start;margin-bottom:20px}
  .page-heading p{font-size:13px;line-height:1.75}
  .page-heading h1{font-size:26px}
  .page-heading .eyebrow{font-size:9px}
  .notice{font-size:12px;line-height:1.8}
  .toast{bottom:calc(var(--mobile-nav-height) + var(--mobile-safe) + 14px);z-index:90;font-size:13px;border-radius:12px}
  body:has(dialog[open]){overflow:hidden}
  dialog{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:88svh;margin:0;padding:24px 20px calc(24px + var(--mobile-safe));border-radius:24px 24px 0 0;border-bottom:0;overscroll-behavior:contain}
  dialog::backdrop{backdrop-filter:blur(4px)}
  .dialog-header h2{font-size:23px}
  .dialog-intro{font-size:13px;line-height:1.8}
  .wallet-options{gap:10px}
  .wallet-option{padding:20px 5px;border-radius:12px;min-height:116px}
  .wallet-option strong{font-size:24px}
  .wallet-option span,.wallet-option small{font-size:11px}
  .dialog-note,.order-line{font-size:13px}

  /* Public home: compact hero, readable cards and thumb-sized filters. */
  #gain-desktop-home .gh-site{overflow:clip}
  #gain-desktop-home .gh-header{position:sticky;top:0;z-index:55;padding:11px 16px;grid-template-columns:1fr auto!important;background:#071a2df5;backdrop-filter:blur(16px)}
  #gain-desktop-home .gh-header-symbol{width:39px}
  #gain-desktop-home .gh-header-wordmark .gh-logo-zh{width:59px}
  #gain-desktop-home .gh-header-wordmark .gh-logo-en,#gain-desktop-home .gh-menu,#gain-desktop-home .gh-nav{display:none!important}
  #gain-desktop-home .gh-account{gap:13px!important}
  #gain-desktop-home .gh-account>.gh-button{display:none}
  #gain-desktop-home .gh-login{font-size:13px;min-height:44px;padding:8px 0}
  #gain-desktop-home .language-switch summary{min-height:40px;border-radius:9px;font-size:11px;padding:7px 9px}
  #gain-desktop-home .language-switch svg{display:block;width:15px}
  #gain-desktop-home .gh-hero{min-height:395px;padding:35px 24px 58px}
  #gain-desktop-home .gh-hero-copy{width:100%;padding:0}
  #gain-desktop-home .gh-kicker{font-size:10px;letter-spacing:1px;margin:0 0 17px}
  #gain-desktop-home .gh-hero h1{font-size:32px;line-height:1.45;letter-spacing:.2px;margin:0 0 16px}
  #gain-desktop-home .gh-hero-description{font-size:13px;line-height:1.95;margin:0 auto 20px;max-width:360px}
  #gain-desktop-home .gh-hero-watermark{width:85%;opacity:.12}
  #gain-desktop-home .gh-hero-actions{display:flex;justify-content:center;align-items:center;gap:20px;margin:0}
  #gain-desktop-home .gh-hero-actions>.gh-button{font-size:14px;min-height:46px;padding:12px 18px;border-radius:10px}
  #gain-desktop-home .gh-hero-actions>.gh-text-link{font-size:12px;min-height:44px}
  #gain-desktop-home .gh-gift-line{margin:15px auto 0;max-width:none;font-size:11px}
  #gain-desktop-home .gh-carousel-arrow{display:none}
  #gain-desktop-home .gh-carousel-dots{bottom:12px;gap:2px}
  #gain-desktop-home .gh-carousel-dots button{min-height:32px;min-width:32px}
  #gain-desktop-home .gh-section{padding:26px 16px;scroll-margin-top:76px}
  #gain-desktop-home .gh-section-heading{gap:10px;margin-bottom:18px}
  #gain-desktop-home h2{font-size:22px;letter-spacing:0}
  #gain-desktop-home .gh-eyebrow{font-size:10px;letter-spacing:1.5px}
  #gain-desktop-home .gh-fixture-caption{font-size:12px}
  #gain-desktop-home .gh-filter-options{flex-wrap:nowrap;overflow-x:auto;width:100%;padding:2px 0 6px;scrollbar-width:none}
  #gain-desktop-home .gh-filter-options>*{flex-shrink:0}
  #gain-desktop-home .gh-filter-options button{min-height:42px;white-space:nowrap;font-size:12px;border-radius:8px;padding:8px 13px}
  #gain-desktop-home .gh-match-grid{grid-template-columns:1fr;gap:12px}
  #gain-desktop-home .gh-match{border-radius:14px;padding:18px 20px}
  #gain-desktop-home .gh-team{font-size:15px;min-height:38px}
  #gain-desktop-home .gh-match-foot button{min-height:40px;font-size:13px}
  #gain-desktop-home .gh-service{display:block;padding-block:20px}
  #gain-desktop-home .gh-service-signature{display:flex;align-items:center;justify-content:flex-start;gap:10px;border-right:0;border-bottom:1px solid #24465e;padding:0 0 12px;margin:0 0 12px}
  #gain-desktop-home .gh-service-signature>.gh-logo-symbol{width:48px}
  #gain-desktop-home .gh-signature-words{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
  #gain-desktop-home .gh-signature-words .gh-logo-zh{width:60px}
  #gain-desktop-home .gh-signature-words .gh-logo-en{width:53px}
  #gain-desktop-home .gh-signature-words>span{font-size:9px;margin:0}
  #gain-desktop-home .gh-service>.gh-section-heading,#gain-desktop-home .gh-how>.gh-section-heading{margin-bottom:12px}
  #gain-desktop-home .gh-service>.gh-benefits{grid-template-columns:minmax(0,1fr);gap:0}
  #gain-desktop-home .gh-benefits article,#gain-desktop-home .gh-steps>div{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:2px 10px;padding:10px 0;border-top:1px solid #24465e}
  #gain-desktop-home .gh-benefits article:last-child,#gain-desktop-home .gh-steps>div:last-child{padding-bottom:0}
  #gain-desktop-home .gh-feature-icon,#gain-desktop-home .gh-steps>div>span{grid-area:1 / 1 / span 2;margin:0}
  #gain-desktop-home .gh-feature-icon{align-items:center;justify-content:center;width:34px;height:34px;padding:0;border-radius:8px}
  #gain-desktop-home .gh-feature-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
  #gain-desktop-home .gh-benefits h3,#gain-desktop-home .gh-steps h3{grid-area:1 / 2;font-size:15px;line-height:1.45;margin:0}
  #gain-desktop-home .gh-benefits p,#gain-desktop-home .gh-steps p{grid-area:2 / 2;font-size:13px;line-height:1.65;margin:0}
  #gain-desktop-home .gh-partner{margin:0 16px 12px;padding:18px;gap:12px;flex-wrap:wrap;border-radius:12px}
  #gain-desktop-home .gh-partner strong{font-size:13px}
  #gain-desktop-home .gh-partner>a{min-height:40px}
  #gain-desktop-home .gh-steps{grid-template-columns:minmax(0,1fr);gap:0}
  #gain-desktop-home .gh-steps>div>span{padding-top:2px;line-height:1.5}
  #gain-desktop-home .gh-bottom-cta{padding:26px 20px;gap:20px;min-height:0}
  #gain-desktop-home .gh-bottom-cta h2{font-size:23px}
  #gain-desktop-home .gh-bottom-cta>.gh-button{width:100%;min-height:46px;border-radius:10px}
  #gain-desktop-home .gh-footer{padding:24px 20px;gap:25px}
  #gain-desktop-home .gh-footer-links{display:flex;flex-wrap:wrap;gap:18px}
  #gain-desktop-home .gh-footer-links button{min-height:40px;font-size:12px}
  html[lang=en] #gain-desktop-home .gh-hero{min-height:405px;padding:32px 20px 58px}
  html[lang=en] #gain-desktop-home .gh-hero h1{font-size:28px;line-height:1.3}
  html[lang=en] #gain-desktop-home .gh-hero-description{font-size:13px;line-height:1.8}
  html[lang=en] #gain-desktop-home #gh-slide-text{gap:15px}
  html[lang=en] #gain-desktop-home .gh-hero-actions{margin-top:20px;gap:18px}
  html[lang=en] #gain-desktop-home .gh-hero-actions>.gh-button{min-width:0}

  /* Matchday reading remains compact, with the sample label always visible. */
  .news-public-header{position:sticky;top:0;z-index:55;display:grid;grid-template-columns:1fr auto;padding:11px 16px;background:#071a2df5;backdrop-filter:blur(16px);gap:10px}
  .news-public-header .brand-symbol{width:38px}
  .news-public-header .brand-zh{width:58px}
  .news-public-header .brand-en,.news-public-nav,.news-public-account>.btn{display:none}
  .news-public-account{gap:13px;font-size:13px}
  .news-public-account .text-link{min-height:44px;display:inline-flex;align-items:center}
  .news-page{padding:24px 16px 35px}
  .news-archive-heading h1{font-size:28px}
  .news-archive-heading p,.news-heading-note{font-size:13px;line-height:1.8}
  .news-heading-end{gap:14px;width:100%;justify-content:space-between}
  .news-controls{margin-top:16px;gap:12px}
  .news-filters{width:100%;display:flex;gap:8px;flex-wrap:nowrap}
  #gain-desktop-home .news-filters button,.news-filters button{font-size:13px;min-height:42px;flex:1;padding:8px 12px;border-radius:9px}
  .news-status{font-size:12px;margin:10px 0 16px}
  .news-grid{display:grid;grid-template-columns:1fr;gap:13px}
  #gain-desktop-home .news-card,.news-card{display:grid;grid-template-columns:86px minmax(0,1fr);border-radius:14px}
  .news-card .news-art{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:13px;padding:12px 8px;min-height:100%}
  .news-card .news-art-copy>span{display:none}
  .news-card .news-art-copy>strong{font-size:9px;letter-spacing:.2px}
  .news-card .news-art svg,#gain-desktop-home .news-card .news-art svg{width:70px;height:54px}
  .news-card-body{padding:15px;min-width:0}
  .news-card-meta{font-size:10px;gap:5px;margin-bottom:8px}
  .news-card-meta>.news-sport{display:none}
  .news-demo{font-size:9px}
  #gain-desktop-home .news-card h3,.news-card h3,html[lang=en] .news-card h3{font-size:15px;line-height:1.6;margin:0 0 10px}
  #gain-desktop-home .news-card p,.news-card p{font-size:12px;line-height:1.75;margin:0 0 12px;-webkit-line-clamp:2}
  #gain-desktop-home .gh-news .news-card p{display:none}
  .news-card-footer{font-size:10px;padding-top:9px;gap:6px;justify-content:space-between}
  .news-card-footer>span{display:none}
  .news-card-footer>strong{font-size:11px}
  .news-date-filter{width:100%;margin-left:0;font-size:13px}
  .news-date-filter input{min-height:44px;font-size:16px;max-width:none;width:100%;flex:1}
  .news-back{min-height:40px;align-items:center;margin-bottom:18px}
  .news-detail-header h1{font-size:27px;line-height:1.6;letter-spacing:0}
  .news-detail-summary{font-size:15px;line-height:1.9}
  .news-body h2{font-size:21px}
  .news-body p{font-size:16px;line-height:1.95}
  .news-detail .news-art{border-radius:14px}
  .news-public-footer{padding:20px 16px;flex-wrap:wrap}

  /* Member home: wallet immediately follows the welcome card. */
  .dashboard-layout{display:flex;flex-direction:column;gap:18px}
  .dashboard-layout>div,.dashboard-side{display:contents}
  .dashboard-layout .welcome{order:0;width:100%;padding:24px 22px;border-radius:18px}
  .welcome h1{font-size:25px;line-height:1.55}
  .welcome p{font-size:13px;line-height:1.85;margin:10px 0 20px}
  .welcome p br{display:none}
  .welcome .btn{font-size:13px}
  .welcome-steps{display:none}
  .dashboard-layout .wallet-card{order:1;width:100%;margin:0!important;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:19px 20px;border-radius:16px}
  .wallet-card>.between{grid-column:1;grid-row:1}
  .wallet-card>.between>.icon,.wallet-card>h2,.wallet-card>.small,.wallet-card>.divider,.wallet-card>.wallet-costs,.wallet-card>a{display:none}
  .wallet-card .wallet-number{grid-column:1;grid-row:2;font-size:38px;margin:0;line-height:1.3}
  .wallet-card>.btn{grid-column:2;grid-row:1/3;margin:0;font-size:13px;min-height:44px;padding:10px 14px}
  .wallet-card>.daily-status{grid-column:1/-1;font-size:12px;margin:7px 0 0;padding-top:12px;border-top:1px solid #31566c}
  .dashboard-layout .stats-row{order:2;width:100%;margin:0 0 5px;gap:9px}
  .stat{border-radius:12px;padding:13px 11px}
  .stat>.icon{display:none}
  .stat strong{font-size:23px}
  .stat span{font-size:10px;line-height:1.7}
  .dashboard-layout>div>section{order:3;width:100%}
  .dashboard-layout>div>section[aria-labelledby=resume-title]{order:4;margin-top:5px!important}
  .dashboard-layout .ad-panel{order:5;margin-top:0!important;width:100%;border-radius:14px}
  .dashboard-side>.panel:not(.wallet-card){order:6;width:100%;margin-top:0}
  .dashboard-side>.notice{order:7;width:100%}
  .match-filters .filter-row{display:block;min-width:0}
  .filter-row>.label{display:block;font-size:12px;margin:0 0 8px;padding:0}
  .match-filters .segmented{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:2px 0 5px;scrollbar-width:none}
  .match-filters .segmented button{white-space:nowrap;flex-shrink:0;min-height:42px;font-size:13px;border-radius:9px}
  .match-grid{grid-template-columns:1fr;gap:12px}
  .fixture{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;padding:18px;border-radius:14px}
  .fixture-top{grid-column:1/-1;margin-bottom:14px;font-size:11px}
  .fixture-top strong{font-size:12px}
  .fixture-team{font-size:14px;line-height:1.6;gap:8px;align-items:center;min-width:0;overflow-wrap:anywhere}
  .fixture-team+.fixture-team{border-left:1px solid #c4d7e2;padding-left:13px}
  .fixture-team .team-badge{width:27px;height:27px;flex-shrink:0}
  .fixture-bottom{grid-column:1/-1;margin-top:14px;padding-top:7px;font-size:11px}
  .fixture-bottom button{min-height:44px;font-size:13px;padding:7px 6px}
  .selection-tray{position:sticky;bottom:calc(var(--mobile-nav-height) + var(--mobile-safe) + 8px);z-index:15;border-radius:13px;padding:13px;align-items:center;box-shadow:0 5px 22px #0003}
  .selection-tray p{font-size:11px;line-height:1.7}
  .selection-tray .btn{font-size:12px;padding-inline:12px}
  .draft-item{padding:17px;border-radius:13px;flex-wrap:wrap}
  .draft-item h3{font-size:14px}
  .draft-item p{font-size:12px;line-height:1.8;overflow-wrap:anywhere}

  /* Account and authentication. */
  .profile-layout{display:grid;grid-template-columns:1fr;gap:18px}
  .profile-summary{position:static;padding:22px;text-align:left}
  .profile-avatar{float:left;width:60px;height:60px;margin:0 16px 16px 0;font-size:22px}
  .profile-summary h2{font-size:19px}
  .profile-summary p{font-size:12px}
  .profile-account-id{clear:both;font-size:11px;padding-top:14px}
  .profile-section-links{display:flex;overflow-x:auto;gap:6px;padding-top:4px}
  .profile-section-links a{font-size:12px;white-space:nowrap;padding:11px 12px;min-height:42px;border-radius:8px}
  .profile-summary>.btn{display:none}
  .profile-main{gap:18px}
  .profile-main .field-grid{grid-template-columns:1fr;gap:20px}
  .profile-main .field-wide{grid-column:auto}
  .profile-data-note{font-size:12px;line-height:1.8}
  .profile-main .form-actions>.btn{flex:1;font-size:13px}
  .security-row{gap:12px;flex-wrap:wrap}
  .security-row p{font-size:12px}
  .security-row .row{gap:6px}
  .security-row .icon{margin-right:4px}
  .table-wrap{max-width:100%;margin-inline:0;border-radius:8px}
  .data-table{font-size:12px}
  .auth-page{display:block}
  .auth-story{display:none}
  .auth-side{min-height:100svh;padding:130px 16px 32px;border:0;background:radial-gradient(ellipse at 20% 0%,#133e56,transparent 58%),#071c30}
  .auth-mobile-brand{display:flex;position:absolute;top:21px;left:18px}
  .auth-mobile-brand .brand-symbol{width:41px}
  .auth-mobile-brand .brand-zh{width:62px}
  .auth-mobile-brand .brand-en{width:43px}
  .auth-language{position:absolute;top:23px;right:18px;left:auto}
  .auth-language .language-switch summary{min-height:40px;border-radius:9px}
  .auth-side-home{top:78px;left:18px;right:auto;min-height:38px;font-size:12px}
  .auth-card{padding:25px 22px;border-radius:20px;max-width:440px}
  .auth-card h2{font-size:27px}
  .auth-card p{font-size:13px;line-height:1.8}
  .auth-card .field>span,.auth-card .field>label{font-size:13px}
  .auth-card input{font-size:16px;min-height:48px}
  .auth-preview{font-size:11px;line-height:1.8;margin-bottom:22px;padding:11px 12px;border-radius:9px}
  .auth-tabs{gap:28px}
  .auth-tabs a{font-size:14px;min-height:38px}
  .auth-card .auth-forgot-link{min-height:40px;font-size:13px}
  .auth-card .check{font-size:12px;min-height:40px}
  .auth-card .auth-terms{font-size:11px!important;line-height:1.8}
  .auth-form{gap:20px}
  .auth-card .password-toggle{width:42px}

  /* Analysis is one workflow: switch matches, enter markets, preview together. */
  body.has-mobile-analysis{--mobile-analysis-height:66px;padding-bottom:calc(var(--mobile-nav-height) + var(--mobile-safe) + var(--mobile-analysis-height) + 10px)}
  .analysis-page>.page-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
  .analysis-page>.page-heading h1{font-size:26px}
  .analysis-page>.page-heading p{font-size:12px;max-width:250px}
  .analysis-page>.page-heading>.row{padding-top:18px}
  .analysis-page>.page-heading>.row .btn{font-size:11px;padding:8px 10px;gap:6px}
  .analysis-page .draft-status{display:none}
  .workspace-layout{display:flex;flex-direction:column;gap:16px}
  .workspace-rail{position:static;order:0;width:100%;padding:16px;border-radius:16px}
  .workspace-rail .section-head{margin-bottom:10px}
  .workspace-rail h2{font-size:17px}
  .workspace-rail .rail-search,.workspace-rail .rail-add,.workspace-rail .rail-help{display:none}
  .workspace-match-list{display:flex;max-height:none;overflow-x:auto;gap:9px;padding:3px 0 8px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#31546b transparent}
  .workspace-match{flex:0 0 176px;scroll-snap-align:start;border-radius:11px}
  .workspace-match .match-switch{padding:12px 30px 12px 13px}
  .workspace-match h3,html[lang=en] .workspace-match h3{font-size:13px;line-height:1.7}
  .workspace-match p{display:none}
  .match-league{font-size:10px;margin-bottom:5px}
  .remove-match{width:36px;height:38px;right:1px;top:1px}
  .config-column{order:1;width:100%}
  .config-column>.notice{display:none}
  .config-panel{position:static;padding:0!important;border-radius:14px;overflow:hidden}
  .mobile-config-toggle{display:flex;width:100%;padding:16px 18px;align-items:center;justify-content:space-between;gap:15px;border:0;background:transparent;color:#173f56;text-align:left;min-height:74px}
  .mobile-config-toggle>span:first-child{display:grid;gap:3px}
  .mobile-config-toggle strong{font-size:15px;font-weight:600}
  .mobile-config-toggle small{font-size:12px;color:#5d7b8e}
  .mobile-config-chevron{font-size:26px;line-height:1;transition:transform .15s}
  .is-mobile-open .mobile-config-chevron{transform:rotate(180deg)}
  .mobile-config-content{display:none}
  .is-mobile-open>.mobile-config-content{display:block;padding:5px 18px 20px}
  .config-panel #config-form{display:grid;grid-template-columns:1fr 1fr;gap:19px 13px}
  .config-panel #config-form>.field:first-child,.config-panel .config-total-counts,.config-panel .plan-summary,.config-panel #analysis-error,.config-panel .config-note{grid-column:1/-1}
  .config-panel .stack{gap:20px}
  .config-panel h2{font-size:20px}
  .config-panel .scope-options{gap:10px}
  .scope-option{min-height:46px;font-size:14px;border-radius:9px}
  .config-panel .risk-options{min-height:46px;flex-wrap:nowrap}
  .config-panel .risk-options button{font-size:13px;padding:8px;min-height:46px;border-radius:8px}
  .config-panel .field>span,.config-counts .field>span{font-size:12px}
  .config-panel .field>small{font-size:12px;line-height:1.8}
  .config-panel #preview-analysis{display:none}
  .plan-summary>div{font-size:12px}
  .config-note{font-size:11px!important}
  .editor-column{order:2;width:100%}
  .editor-column>.panel{padding:19px 16px;border-radius:16px}
  .editor-meta{gap:7px;flex-wrap:wrap}
  .editor-title,html[lang=en] .editor-title{font-size:22px;gap:8px;line-height:1.6;flex-wrap:wrap;margin-top:13px}
  .editor-title .vs{font-size:11px}
  .editor-step{font-size:13px;gap:9px}
  .source-modes{gap:7px}
  .source-mode{padding:13px 5px;border-radius:10px;gap:7px;min-width:0}
  .source-mode>.icon{width:21px;height:21px}
  .source-mode strong,html[lang=en] .source-mode strong{font-size:12px;line-height:1.5}
  .source-mode small{display:none}
  .source-help{font-size:12px;line-height:1.85;margin:12px 0 22px}
  .odds-head{flex-wrap:wrap;gap:8px;margin-bottom:9px}
  .odds-head h3{font-size:14px}
  .format-field{font-size:11px;gap:7px}
  .format-field select{min-height:40px;width:112px;font-size:13px;padding:8px}
  .market-preference-help{font-size:12px;line-height:1.65;margin-bottom:10px}
  .odds-labels,.odds-row{grid-template-columns:minmax(0,1fr) 73px 44px 32px;gap:7px}
  .odds-labels{font-size:11px}
  .odds-row{padding:9px 0;border-top:1px solid #24465e;margin:0;align-items:start}
  .odds-row .market-value{font-size:13px;min-height:46px;display:flex;align-items:center;line-height:1.7}
  .odds-row .odd-value{font-size:16px;min-height:46px;display:flex;align-items:center;justify-content:flex-end;padding:9px;border-radius:9px}
  .odds-row input{padding:10px 8px;font-size:16px}
  .odds-row .icon-btn{width:32px;min-width:32px;min-height:46px;height:46px}
  .odds-labels.is-manual,.odds-row-manual{grid-template-columns:minmax(0,1fr) 70px 44px 44px;gap:6px}
  .odds-row-manual .icon-btn,.odds-row-manual .market-preference{width:100%;min-width:0}
  .market-fields{display:grid;gap:8px;min-width:0}
  .market-fields select,.market-fields .market-line,.market-fields .market-custom{width:100%;min-width:0;padding:10px 8px;font-size:16px;min-height:46px}
  .market-preference{min-height:46px;width:44px;border-radius:9px}
  .market-preference input{width:20px;height:20px;min-height:20px;accent-color:#4dcef8}
  .market-add{font-size:13px;min-height:44px;margin-top:10px}
  .source-info-footer{font-size:11px;line-height:1.8;margin-top:17px;gap:9px;align-items:flex-start}
  .source-info-footer>span:last-child{display:none}
  .match-info{margin-top:16px}
  .match-info-grid{grid-template-columns:1fr;gap:10px}
  .match-info-grid>div{display:block;padding:14px;border-radius:10px}
  .match-info-grid strong{font-size:13px}
  .match-info-grid p{font-size:12px;margin-top:5px}
  .match-info-grid span{font-size:10px;margin-top:7px}
  .mobile-analysis-action{position:fixed;z-index:60;bottom:calc(var(--mobile-nav-height) + var(--mobile-safe));left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--mobile-analysis-height);padding:8px 16px;background:#0e2c40f5;border-top:1px solid #375c73;backdrop-filter:blur(15px);box-sizing:border-box}
  .mobile-analysis-action>div{display:grid;gap:4px;min-width:0}
  .mobile-analysis-action strong{font-size:12px;font-weight:500;color:#d4edf9;overflow-wrap:anywhere}
  .mobile-analysis-action span{font-size:11px;color:#98bdd1}
  .mobile-analysis-action .btn{flex-shrink:0;font-size:13px;gap:7px;padding:11px 15px;min-height:46px}
  body.has-mobile-analysis .toast{bottom:calc(var(--mobile-nav-height) + var(--mobile-safe) + var(--mobile-analysis-height) + 12px)}
  .fixture-picker{width:100%;padding:24px 16px calc(20px + var(--mobile-safe));max-height:90svh}
  .fixture-picker .picker-controls{grid-template-columns:1fr;gap:16px;margin-top:19px}
  .fixture-picker .match-grid{grid-template-columns:1fr;max-height:42svh;overscroll-behavior:contain}
  .fixture-picker .segmented button{min-height:42px;font-size:13px}
  .fixture-picker .form-actions{position:sticky;bottom:calc(-20px - var(--mobile-safe));background:#0b2237;padding:16px 0;justify-content:space-between;gap:9px;flex-wrap:nowrap;margin-top:6px}
  .fixture-picker .form-actions .small{font-size:11px}
  .fixture-picker .form-actions .btn{font-size:13px}
  .result-section{scroll-margin-top:86px}
  .result-section>.section-head{align-items:flex-start;flex-wrap:wrap}
  .result-grid{grid-template-columns:1fr}
  .result-tabs{gap:0;scrollbar-width:thin;scrollbar-color:#42677d transparent}
  .result-tabs button{font-size:12px;min-height:46px;padding:12px 15px}
  .result-summary-cards{grid-template-columns:1fr 1fr;gap:10px}
  .result-summary-cards>div{padding:16px;border-radius:12px}
  .result-summary-cards span{font-size:11px}
  .result-summary-cards strong{font-size:23px}
}
@media(max-width:360px){
  .member-header{padding-inline:12px}
  .member-actions{gap:8px}
  .page{padding-inline:12px}
  .panel{padding:17px}
  #gain-desktop-home .gh-header{padding-inline:12px}
  #gain-desktop-home .gh-hero h1{font-size:29px}
  .analysis-page>.page-heading{display:block;position:relative}
  .analysis-page>.page-heading>.row{position:absolute;right:0;top:-3px;padding:0}
  .analysis-page>.page-heading p{max-width:100%}
  .analysis-page>.page-heading .eyebrow{max-width:175px;font-size:8px}
  .editor-column>.panel{padding-inline:13px}
  .odds-labels,.odds-row{grid-template-columns:minmax(0,1fr) 67px 40px 27px;gap:5px}
  .market-preference{width:40px}
  .odds-row .icon-btn{width:27px;min-width:27px}
  .auth-mobile-brand .brand-en{display:none}
  .mobile-analysis-action{gap:9px;padding-inline:12px}
  .mobile-analysis-action .btn{padding-inline:12px}
}
@media(prefers-reduced-motion:reduce){.mobile-config-chevron{transition:none}}
@media(max-width:760px){
  html{scrollbar-width:none}
  html::-webkit-scrollbar{display:none}
  #member-header{position:sticky;top:-27px;z-index:55}
  .member-header{position:relative;top:auto}
  #gain-desktop-home .gh-header-wordmark .gh-logo-en{display:block!important;width:43px}
  .member-header .brand-en{display:block!important;width:42px}
  .member-header .brand-words{gap:7px}
  #gain-desktop-home .gh-desktop-break{display:initial}
  #gain-desktop-home .gh-hero-description{text-wrap:initial}
  .workspace-rail .eyebrow{display:none}
  .workspace-rail .section-head{min-height:40px;margin-bottom:8px}
  .workspace-match .match-switch{padding:10px 29px 10px 12px}
  .workspace-match .match-switch h3{margin:4px 0 0;font-size:12px;line-height:1.6}
  .workspace-match-list{scrollbar-width:none;padding-bottom:3px}
  .workspace-match-list::-webkit-scrollbar{display:none}
}
@media(max-width:360px){
  .member-header .brand-en{width:35px}
  .member-header .brand-zh{width:51px}
  #gain-desktop-home .gh-header-wordmark .gh-logo-en{width:35px}
  #gain-desktop-home .gh-header-wordmark .gh-logo-zh{width:51px}
  #gain-desktop-home .gh-brand{gap:6px}
}
.mobile-welcome-copy{display:none}
@media(max-width:760px){
  .welcome>div>p:not(.mobile-welcome-copy){display:none}
  .welcome .mobile-welcome-copy{display:block;font-size:13px;line-height:1.8;margin:8px 0 18px}
  .dashboard-layout .welcome{padding:21px 22px}
  .wallet-card>.btn{align-self:center}
  .stat>[data-icon]{display:none}
}
@media(max-width:760px){
  .profile-layout,.profile-main{grid-template-columns:minmax(0,1fr)}
  .profile-layout>*,.profile-main>*{min-width:0;max-width:100%}
  .profile-main .section-head{flex-wrap:wrap}
  .security-row .row,.security-row .row>div{min-width:0}
  dialog,.fixture-picker .match-grid{scrollbar-width:none}
  dialog::-webkit-scrollbar,.fixture-picker .match-grid::-webkit-scrollbar{display:none}
  body.has-mobile-analysis:has(#analysis-results:not([hidden])){padding-bottom:calc(var(--mobile-nav-height) + var(--mobile-safe))}
  body:has(#analysis-results:not([hidden])) .mobile-analysis-action{display:none}
  body:has(#analysis-results:not([hidden])) .toast{bottom:calc(var(--mobile-nav-height) + var(--mobile-safe) + 14px)}
}
@media(max-width:760px){
  html[lang=en] .analysis-page #save-workspace{font-size:0;min-width:44px;padding:10px}
  html[lang=en] .analysis-page #save-workspace .icon{width:18px;height:18px}
}
@media(max-width:760px){
  .member-header,.news-public-header,#gain-desktop-home .gh-header{padding-top:calc(11px + env(safe-area-inset-top,0px))}
  .news-public-header .brand-en{display:block;width:42px}
  .auth-mobile-brand{top:calc(21px + env(safe-area-inset-top,0px))}
  .auth-language{top:calc(23px + env(safe-area-inset-top,0px))}
  .auth-side-home{top:calc(78px + env(safe-area-inset-top,0px))}
  .auth-side{padding-top:calc(130px + env(safe-area-inset-top,0px))}
}
