/* Explicit bait selection, above all theme layers. */
#phone #app #s-mine .set-row__status { margin-left:auto; font-size:12px; color:#496552; white-space:nowrap; }
#phone #app #s-mine.screen .sw { display:inline-flex; align-items:center; cursor:pointer; min-width:48px; min-height:28px; padding:2px; border-radius:999px; background:#d4ded7!important; border:1px solid #90ad9b!important; }
#phone #app #s-mine.screen .sw.is-on { background:#07a857!important; border-color:#078247!important; }
#phone #app #s-mine .sw .sw__knob { width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0003; transform:translateX(0); }
#phone #app #s-mine .sw.is-on .sw__knob { transform:translateX(21px); }
#phone #app #s-mine .sw:focus-visible { outline:2px solid #087a46; outline-offset:3px; }
/* 商城鱼饵素材必须受卡片网格约束；旧版线上样式没有缩略图规则，
   img 的 104px 固有尺寸会压在价格和数量控件上。 */
#phone #app #s-shop .shop-card:has(.shop-card__icon-art) {
  display:grid; grid-template-columns:52px minmax(0,1fr); align-items:start; gap:12px;
}
#phone #app #s-shop .shop-card:has(.shop-card__icon-art) .shop-card__icon {
  width:52px; min-width:0; align-self:start; padding:0;
}
#phone #app #s-shop .shop-card__icon-art {
  display:block; width:52px; height:52px; max-width:100%; object-fit:contain;
  box-sizing:border-box; padding:4px; border:1px solid #dcefe4;
  border-radius:12px; background:#f1f9f4;
}
#phone #app #s-shop .shop-card:has(.shop-card__icon-art) .shop-card__main { min-width:0; }
#phone #app #s-shop .shop-card:has(.shop-card__icon-art) .shop-card__right { grid-column:2; }
#phone #app #s-shop .shop-card:has(.shop-card__icon-art) .shop-card__right:empty { display:none; }
#phone #app #s-shop .shop-card__bait-rules { margin:6px 0; line-height:1.4; }
#phone #app #s-shop .shop-bulk-buy { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
#phone #app #s-shop .shop-bulk-qty input { width:62px; min-height:44px; }
#phone #app #s-shop .shop-buy--bulk { min-height:44px; }
.action-confirm { width:min(340px,calc(100vw - 32px)); box-sizing:border-box; padding:22px; border:1px solid #4c7461; border-radius:18px; background:#0d2630; color:#d9e9de; box-shadow:0 16px 60px #0008; }
.action-confirm::backdrop { background:rgba(0,10,18,.7); }
.action-confirm h2 { margin:0 0 12px; font-size:18px; }
.action-confirm p { margin:0 0 20px; font-size:14px; line-height:1.7; }
.action-confirm__buttons { display:flex; gap:12px; }
.action-confirm__buttons button { flex:1; min-height:44px; border:1px solid #4c7461; border-radius:10px; background:#183a43; color:#d9e9de; font:inherit; cursor:pointer; }
.action-confirm__buttons .action-confirm__accept { background:#087a46; border-color:#249569; }
.action-confirm button:focus-visible { outline:2px solid #9de5bb; outline-offset:3px; }
#phone #app #s-mine .qual-opt { min-height:44px; font:inherit; cursor:pointer; }
#phone #app #s-mine .qual-opt.is-on { background:#d9f2e3!important; border-color:#087a46!important; color:#075a34!important; box-shadow:inset 0 0 0 1px #087a46; }
#phone #app .screen .paid-solo-dialog__baits .batch-bait { position:relative; padding:14px 76px 14px 12px!important; border:2px solid #acd8bd!important; background:#f1faf4!important; color:#17291e!important; box-shadow:none!important; }
#phone #app .screen .paid-solo-dialog__baits .batch-bait.is-selected { border-color:#075f32!important; background:#dcf5e5!important; box-shadow:inset 0 0 0 1px #075f32!important; }
#phone #app .screen .paid-solo-dialog__baits .batch-bait.is-selected::after { content:'✓ 已选'; position:absolute; right:10px; top:14px; padding:5px 7px; border-radius:8px; background:#075f32; color:#fff; font-size:12px; font-weight:700; }
#phone #app .screen .paid-solo-dialog__baits .batch-bait:disabled { opacity:.6; background:#eef1ef!important; border-color:#cbd5ce!important; }
#phone #app .screen .paid-solo-dialog__baits .batch-bait small { color:#496552!important; }

/* Spacious bait picker, sized to the app rather than the outer browser. */
#phone #app #s-home .paid-solo-dialog { padding:12px!important; }
#phone #app #s-home .paid-solo-dialog__panel { width:100%!important; height:94%!important; max-height:100%!important; padding:20px 16px!important; display:flex; flex-direction:column; box-sizing:border-box; border-radius:20px!important; }
#phone #app #s-home .paid-solo-dialog__panel h2 { font-size:22px!important; margin:4px 50px 12px 0!important; }
#phone #app #s-home .paid-solo-dialog__panel>p { font-size:14px!important; line-height:1.65!important; flex-shrink:0; }
#phone #app #s-home .paid-solo-dialog__baits { flex:1 0 auto; display:grid; grid-auto-rows:minmax(100px,1fr); gap:12px; margin:16px 0; }
#phone #app #s-home .paid-solo-dialog__baits .batch-bait { padding:16px 76px 16px 14px!important; gap:7px; align-content:center; }
#phone #app #s-home .paid-solo-dialog__baits .batch-bait b { font-size:16px!important; line-height:1.4; }
#phone #app #s-home .paid-solo-dialog__baits .batch-bait span { font-size:14px!important; line-height:1.4; }
#phone #app #s-home .paid-solo-dialog__baits .batch-bait small { font-size:12px!important; line-height:1.5; }
#phone #app #s-home .paid-solo-dialog__enter { min-height:58px; font-size:19px!important; flex-shrink:0; }
#phone #app #s-home .paid-solo-dialog__panel>.btn-ghost { width:100%; min-height:46px; flex-shrink:0; }
@media(max-height:650px) { #phone #app #s-home .paid-solo-dialog__panel { height:100%!important; } #phone #app #s-home .paid-solo-dialog__baits { grid-auto-rows:minmax(88px,1fr); gap:8px; margin:10px 0; } }

/* Keep changing hints, bait status and controls in one flowing stack. */
#phone #app #s-match :is(.m-chip,.m-nettag,.m-group-tool,.m-gauge-l,.m-toast) { background:rgba(5,28,40,.8)!important; color:#d9e9de!important; border-color:rgba(136,191,159,.3)!important; box-shadow:none!important; }
#phone #app #s-match :is(.m-group-tool__icon,.m-group-tool:first-child,.m-group-tool__label) { color:#c2dfcf!important; }
#phone #app #s-match .m-gauge-l :is(.m-gauge-l__label,.m-gauge-l__name,.m-gauge-l__rar,.m-gauge-l__count) { color:#c2dfcf!important; }
#phone #app #s-match .m-gauge-l .m-gauge-l__track { background:rgba(136,191,159,.16)!important; }
#phone #app #s-match .m-gauge-l .m-gauge-l__fill { background:linear-gradient(0deg,#258a67,#9de5bb); box-shadow:none; }
#phone #app #s-match .m-gauge-l__val { color:#9de5bb; }
#phone #app #s-match .m-gauge-l--tired .m-gauge-l__val { color:#efd39a; }
#phone #app #s-match .m-group-tool:focus-visible { outline:2px solid #9de5bb; outline-offset:3px; }
#phone #app .match--solo .m-bar { margin-top:0; flex-wrap:wrap; }
#phone #app .match--paid-fishing .m-bar { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px; gap:4px; }
#phone #app .match--paid-fishing .m-bar .m-chip { justify-content:center; padding:6px 4px; font-size:10px; min-width:0; }
#phone #app .match--paid-fishing .m-bar .m-chip>span:first-child { display:none; }
#phone #app .match--paid-fishing .m-nettag { display:none; }
#phone #app .match--paid-fishing .m-timer { font-size:24px; letter-spacing:0; }
#phone #app .match--paid-fishing .m-tools--paid { top:calc(var(--safe-top) + 62px); }
#phone #app .match--paid-fishing .m-solo-dock { position:absolute; z-index:12; left:12px; right:12px; bottom:0; display:flex; flex-direction:column; gap:12px; padding-bottom:calc(var(--safe-bottom) + 8px); }
#phone #app .match--paid-fishing .m-solo-dock :is(.m-toast,.m-solo-baitbar,.m-controls,.m-footnote,.m-quit) { position:static; inset:auto; transform:none; }
#phone #app .match--paid-fishing .m-toast { align-self:center; max-width:100%; width:fit-content; white-space:normal; text-align:center; line-height:1.5; margin:0; }
#phone #app .match--paid-fishing .m-solo-baitbar { width:100%; margin:0; box-sizing:border-box; gap:8px; padding:0; border:0; background:transparent; box-shadow:none; }
#phone #app .match--paid-fishing .m-solo-baitbar .m-solo-cast { min-height:48px; padding:2px 6px; gap:6px; border-radius:14px; background:rgba(5,28,40,.8)!important; color:#d9e9de!important; border:1px solid rgba(136,191,159,.3)!important; box-shadow:none!important; }
#phone #app .match--paid-fishing .m-solo-cast__icon { width:28px; height:28px; object-fit:contain; }
#phone #app .match--paid-fishing .m-solo-cast__name { color:#d9e9de; }
#phone #app .match--paid-fishing .m-solo-cast__count { color:#adc6b8!important; }
#phone #app .match--paid-fishing .m-solo-baitbar .m-bait-quick:not([open]) { flex-basis:72px; width:72px; }
#phone #app .match--paid-fishing .m-solo-baitbar .m-bait-quick:not([open])>summary { height:48px; padding:4px; white-space:nowrap; background:rgba(5,28,40,.8)!important; color:#c2dfcf!important; border:1px solid rgba(136,191,159,.3)!important; box-shadow:none!important; }
#phone #app .match--paid-fishing .m-solo-cast__action { border-radius:10px; background:#087a46!important; color:#e0f2e7!important; box-shadow:none; }
#phone #app .match--paid-fishing .m-solo-cast__count { font-size:11px; line-height:1.4; }
#phone #app .match--paid-fishing .m-solo-cast__action { min-height:44px; }
#phone #app .match--paid-fishing .m-controls { padding:0 8px; gap:12px; }
#phone #app .match--paid-fishing .m-solo-footer { display:flex; align-items:center; gap:8px; }
#phone #app .match--paid-fishing .m-footnote { flex:1; min-width:0; font-size:11px; line-height:1.5; }
#phone #app .match--paid-fishing .m-footnote i { flex-shrink:0; }
#phone #app .match--paid-fishing .m-quit { flex-shrink:0; min-height:44px; display:flex; align-items:center; }
#phone #app .match--paid-fishing .m-solo-baitbar .m-bait-quick[open] { position:fixed; }
@media(max-height:700px) {
  #phone #app .match--paid-fishing .m-solo-dock { gap:8px; }
  #phone #app .match--paid-fishing .ctl--main { width:96px; height:96px; }
  #phone #app .match--paid-fishing .ctl--sm { width:64px; height:64px; }
}

/* Invite page: make the referral card one clear stack and keep team metrics compact. */
#phone #app #s-social .invite-card {
  display:flex!important; flex-direction:column; align-items:stretch; gap:9px;
  padding:13px!important; background:#fff!important; color:#17251c!important;
}
#phone #app #s-social .invite-card__meta { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#phone #app #s-social .invite-card__meta .user-id-copy { min-height:38px; margin:0; padding:5px 10px; }
#phone #app #s-social .invite-count { color:#087a46; background:#eaf6ee; border-radius:999px; padding:6px 10px; font-size:12px; white-space:nowrap; }
#phone #app #s-social .invite-code-label { margin:0; color:#496552; font-size:12px; }
#phone #app #s-social .invite-card .invite-code {
  display:flex; align-items:center; justify-content:space-between; width:100%; min-height:54px;
  box-sizing:border-box; padding:8px 13px; border-radius:13px; border:1px solid #c8e2d1;
  background:#eff8f2!important; color:#075f32!important; font-size:27px; letter-spacing:2px;
}
#phone #app #s-social .invite-card__wallet { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 10px; min-height:30px; }
#phone #app #s-social .invite-card__wallet .dim { font-size:12px; }
#phone #app #s-social .invite-wallet-copy { min-height:38px; padding:5px 9px; border-radius:10px; background:#f2f7f3; color:#174c30; }
#phone #app #s-social .invite-card .referral-copy { width:100%; min-height:46px; justify-content:center; margin:0; border-radius:12px; }
#phone #app #s-social .invite-card .invite-code-note { margin:0; padding:8px 9px; font-size:11px; line-height:1.45; }
#phone #app #s-social .invite-team-heading { gap:8px; margin-bottom:10px; }
#phone #app #s-social .invite-team-heading h2 { gap:7px; font-size:18px; }
#phone #app #s-social .invite-team-heading>button { min-height:40px; padding:5px 10px; }
#phone #app #s-social .invite-team .invite-team-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; padding:0!important; background:transparent!important; }
#phone #app #s-social .invite-team .invite-stat { min-height:68px; box-sizing:border-box; gap:7px; padding:8px!important; border-radius:12px; }
#phone #app #s-social .invite-team .invite-stat>.ocean-icon { width:23px; height:26px; flex:0 0 23px; }
#phone #app #s-social .invite-team .invite-stat>div { padding-left:7px; }
#phone #app #s-social .invite-team .invite-stat .dim { font-size:10px; line-height:1.35; }
#phone #app #s-social .invite-team .invite-stat b { font-size:19px; line-height:1.25; }
#phone #app #s-social .invite-team .invite-team-note { gap:6px; margin:9px 0; padding:8px; font-size:11px; line-height:1.45; }
#phone #app #s-social .invite-team .invite-mainlines { margin:8px 0 10px; padding:0 10px; border-radius:12px; }
#phone #app #s-social .invite-mainlines__summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:42px; cursor:pointer; list-style:none; }
#phone #app #s-social .invite-mainlines__summary::-webkit-details-marker { display:none; }
#phone #app #s-social .invite-mainlines__summary::after { content:'＋'; color:#087a46; font-size:18px; }
#phone #app #s-social .invite-mainlines[open] .invite-mainlines__summary::after { content:'−'; }
#phone #app #s-social .invite-mainlines>p { margin:0 0 9px; }
@media(max-width:360px) {
  #phone #app #s-social .invite-card .invite-code { font-size:24px; }
  #phone #app #s-social .invite-team .invite-stat { gap:5px; padding:7px!important; }
  #phone #app #s-social .invite-team .invite-stat b { font-size:17px; }
}

/* Keep bag actions in their own footer; sticky content inside the list covered
   fish rows and interfered with vertical scrolling on mobile. */
#phone #app #s-bag .bag-actions { position:relative; inset:auto; z-index:1; flex:0 0 auto; background:#f8fbf8!important; border-top:1px solid #c9dfd0; box-shadow:0 -5px 16px rgba(24,76,43,.08); padding-bottom:calc(10px + var(--safe-bottom,0px)); }
#phone #app #s-bag .bag-actions button { touch-action:manipulation; }
/* Batch recovery must remain tappable above the dimming backdrop on wallet browsers. */
#phone #app #s-match .batch-fishing--compact[open]::before { pointer-events:none!important; }
#phone #app #s-match .batch-fishing--compact[open]>:is(summary,button,p,.batch-counts,.batch-baits,.batch-result,.batch-reveal) { position:relative; z-index:1; pointer-events:auto!important; touch-action:manipulation; }
/* The paid-fishing dock creates a low stacking context. Lift the whole dock
   while its recovery dialog is open so wallet webviews hit the real controls. */
#phone #app .match--paid-fishing .m-solo-dock:has(.m-bait-quick[open]) { z-index:120!important; pointer-events:auto!important; }
#phone #app .match--paid-fishing .m-solo-baitbar .m-bait-quick[open] { z-index:121!important; pointer-events:auto!important; touch-action:pan-y; }
#phone #app .match--paid-fishing .m-solo-baitbar .m-bait-quick[open]>* { pointer-events:auto!important; }
/* Keep one scroll container for long 50/100-fish results on mobile. */
#phone #app #s-match .batch-fishing--compact[open] .batch-cards { max-height:none; overflow:visible; touch-action:auto; }
/* Stacked fish remain easy to scan and their whole row is one large selection target. */
#phone #app #s-bag .bag-item__name { flex-wrap:wrap; }
#phone #app #s-bag .bag-item__qty { display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border:1px solid #b8dfc7;border-radius:999px;background:#eaf7ef;color:#11653a;font-size:11px;font-weight:800;line-height:1; }
#phone #app #s-bag .bag-item__source { display:inline-flex;align-items:center;width:max-content;margin-top:4px;padding:2px 7px;border-radius:999px;background:#eef5f1;color:#557266;font-size:10px;line-height:1.4; }
#phone #app #s-bag .bag-item:has(.bag-item__source) { cursor:pointer; }
#phone #app #s-bag .bag-item__details { line-height:1.45; }
#phone #app #s-bag .bag-item.is-partial { border-style:dashed; }
