/* Dashboard shell — ai.ufootball.com.my
   Look follows the lab /panel layout: near-black ground, dark sidebar,
   the content as one white rounded panel with a sticky topbar.
   Plain CSS on purpose — the panel uses the Tailwind CDN, this page vendors
   nothing it can write in forty lines. */

:root {
  --green: #009E4F;
  --green-dark: #007A3D;
  --accent: #22c55e;
  --red: #FF3B30;

  --ground: #eef5ee;          /* light sage page ground */
  --ground-2: rgba(0, 158, 79, .08);  /* hover on the light ground */
  --side-ink: #33413a;

  --ink: #0f172a;
  --ink-2: #475569;
  /* #94a3b8 is 2.6:1 on white, too faint for the small captions it carries */
  --ink-3: #64748b;

  --surface: #FFF;
  --surface-2: #f1f5f9;
  --line: #e5eee7;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;

  --body: 'Inter', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --motion-fast: 180ms;
  --motion-normal: 260ms;
  --motion-slow: 650ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* color: inherit matters on iOS Safari, whose UA paints button text blue */
button { color: inherit; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  /* the faint stadium art grounds the whole page; a translucent wash keeps it subtle */
  background:
    linear-gradient(155deg, rgba(246, 250, 246, .82) 0%, rgba(234, 243, 236, .72) 55%, rgba(226, 239, 229, .78) 100%),
    url(img/side-bg.webp) bottom center / cover no-repeat fixed #eef5ee;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }

[hidden] { display: none !important; }

/* iOS Safari auto-zooms the page when a focused control's font-size is under
   16px, and stays zoomed after blur. 16px on phones suppresses that. */
@media (max-width: 767px) {
  input, select, textarea { font-size: 16px !important; }
  /* long heading subtitles drop to their own line on phones */

}

/* ── login ─────────────────────────────────────────────────────────────── */

/* full-bleed stadium background: dark left, light right; the seam in the
   generated art is bridged by the gradient overlay */
.login-wrap {
  position: relative;
  min-height: 100vh;
  background: url(img/login-bg.webp) center / cover no-repeat, #0d3b26;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  padding: 96px 4vw 64px;
}

/* top bar */
.lg-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px;
  color: #fff;
}
.lg-brand { display: flex; align-items: center; gap: 12px; }
.lg-logo { height: 52px; width: auto; }

/* left hero copy */
.login-hero { color: #fff; padding-left: 4vw; }
.login-hero :is(h1, h2) { font-size: 54px; font-weight: 900; line-height: 1.14; letter-spacing: 2px; }

/* Single column below 1100px: headline banner above the card, rest of the
   hero hidden. Sits after the hero base rules so the cascade cannot undo it. */
@media (max-width: 1100px) {
  /* the ball/stadium composition sits on the image's left; keep it in frame */
  .login-wrap {
    grid-template-columns: 1fr;
    /* symmetric padding so the headline+card group truly centers */
    padding: 84px 16px;
    background-position: left center;
    align-content: center;
    justify-items: center;
    gap: 22px;
  }
  .login-hero { padding: 0; text-align: center; }
  .login-hero :is(h1, h2) { font-size: 30px; letter-spacing: 1px; }
}

.login-side { display: grid; place-items: center; }

.login-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: 24px;
  padding: 44px 48px 36px;
  box-shadow: 0 30px 70px -20px rgba(15, 40, 25, .35);
  text-align: center;
  position: relative;
  z-index: 1;
}
.login-card .field { text-align: left; }
.login-logo { width: 300px; max-width: 80%; height: auto; margin: 0 auto 22px; }
.login-card .brand { font-size: 26px; font-weight: 800; }
.login-card .login-sub { font-size: 14px; margin: 8px 0 26px; }
.login-card .btn { height: 52px; border-radius: 12px; font-size: 15px; }
.login-card .btn-primary { font-size: 16px; font-weight: 700; }
.login-card .btn-primary .arrow { margin-left: 6px; }
.login-card input { height: 52px; border-radius: 12px; padding-left: 42px; font-size: 14.5px; }
.login-card .field > span:first-child { font-size: 14px; font-weight: 600; color: var(--ink); }

/* 登录/注册 tabs across the card top */
.lg-tabs { display: flex; margin: -10px 0 24px; border-bottom: 2px solid #eef1f4; }
.lg-tab {
  flex: 1; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 700; color: var(--ink-3);
  padding: 8px 0 12px; position: relative;
}
.lg-tab.on { color: var(--green); }
.lg-tab.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 2px; background: var(--green);
}

/* WhatsApp OTP panel */
/* .field qualifier: .field span { display: block } would otherwise win and
   leave the number box at the browser's default tel width */
/* Code and number are one field: the row owns the outline and the focus
   state, the two controls inside are transparent with a divider between.
   The outline is an inset shadow, not a border, so the row stays exactly as
   tall as the input and lines up with the 验证码 field at every breakpoint. */
.field .wa-phone {
  display: flex; border-radius: 12px; background: #fff;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  transition: box-shadow var(--motion-fast);
}
.field .wa-phone:focus-within { box-shadow: inset 0 0 0 1px var(--green), 0 0 0 3px rgba(0, 158, 79, .16); }
.field .wa-phone select {
  /* no height: the row stretches it to the input, which shrinks per breakpoint */
  width: 96px; flex: none;
  border: 1px solid transparent; border-right-color: #e2e8f0; border-radius: 12px 0 0 12px;
  padding: 0 32px 0 16px; font: inherit; font-size: 14.5px; color: var(--ink);
  /* drawn chevron: the native arrow ignores padding and sits against the divider */
  appearance: none; -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 11px 8px;
}
.wa-phone select:focus-visible { outline: none; }
.wa-phone input,
.wa-phone input:focus-visible {
  flex: 1; min-width: 0; border-color: transparent; border-radius: 0 12px 12px 0;
  background: transparent; box-shadow: none;
}
html[data-theme="dark"] .field .wa-phone { background: #0b1310; box-shadow: inset 0 0 0 1px rgba(150, 200, 185, .4); }
html[data-theme="dark"] .field .wa-phone:focus-within { box-shadow: inset 0 0 0 1px rgba(46, 230, 168, .75); }
html[data-theme="dark"] .wa-phone select {
  background-color: transparent; border-color: transparent; border-right-color: rgba(150, 200, 185, .32);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23cbd5e1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* the open list cannot inherit a transparent select background */
html[data-theme="dark"] .wa-phone option { background: #0e1512; color: #f1f5f9; }
html[data-theme="dark"] #view-login .login-card .wa-phone input,
html[data-theme="dark"] #view-login .login-card .wa-phone input:focus-visible {
  background: transparent; border-color: transparent; box-shadow: none;
}
html[data-theme="dark"] #view-login .login-card .wa-phone input:-webkit-autofill { box-shadow: 0 0 0 40px #0b1310 inset; }
/* the 验证码 field below takes the same outline and calm focus */
html[data-theme="dark"] #view-login .login-card .wa-otp input { border-color: rgba(150, 200, 185, .4); }
html[data-theme="dark"] #view-login .login-card .wa-otp input:focus-visible {
  border-color: rgba(46, 230, 168, .75); box-shadow: none;
}
.wa-otp { position: relative; display: block; }
.wa-otp input { width: 100%; padding-right: 116px; }
.wa-get {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; border-left: 1px solid var(--line);
  padding: 6px 10px 6px 14px; font: inherit; font-size: 13.5px;
  color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.wa-get:disabled { color: var(--ink-3); cursor: default; }
.wa-phone input, .wa-otp input, #wa-password, #wa-ref { padding-left: 14px; }
.wa-note {
  display: flex; align-items: center; gap: 8px; text-align: left;
  font-size: 13px; color: var(--ink-2); margin: 2px 0 16px;
}
.wa-note svg { width: 20px; height: 20px; color: #25D366; flex: none; }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.btn-wa svg { width: 20px; height: 20px; flex: none; }
.btn-wa-switch { margin-top: 10px; }

/* terms line under whichever panel is open */
.lg-terms { margin: 20px 0 0; font-size: 12.5px; color: var(--ink-3); }
.lg-terms a { color: var(--green); font-weight: 600; text-decoration: none; }
.lg-terms a:hover, .lg-foot a:hover { text-decoration: underline; }
#email {
  padding-left: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 6 10-6'/%3E%3C/svg%3E") 14px center no-repeat;
}
#password, #login-password {
  padding-left: 42px;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") 14px center no-repeat;
}

/* bottom footer over the background */
.lg-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  font-size: 13px; color: #5c6f63;
}
.lg-foot > div:first-child { display: flex; gap: 26px; color: rgba(255, 255, 255, .8); }
.lg-foot a { color: inherit; text-decoration: none; }
@media (max-width: 900px) {
  .lg-foot {
    position: static; flex-direction: column; gap: 8px;
    margin-top: 24px; padding: 18px 14px;
    color: rgba(255, 255, 255, .85);
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  }
  .lg-foot > div:first-child { gap: 20px; flex-wrap: wrap; justify-content: center; color: rgba(255, 255, 255, .95); }
  .lg-foot a { white-space: nowrap; }
}
.pw-wrap { position: relative; display: block; }
.pw-eye {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  /* 44px square: the senior tester could not hit the 26px original */
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-3);
}
.pw-wrap input { padding-right: 46px; }
.pw-eye svg { width: 18px; height: 18px; display: block; }
.login-links { text-align: right; margin: -4px 0 14px; }
.login-reg { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-2); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--green); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.brand { font-size: 22px; font-weight: 800; }
.brand span { color: var(--green); }

.login-sub { color: var(--ink-3); font-size: 14px; margin: 4px 0 28px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }

input[type=email], input[type=password], input[type=text], input[type=number] {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--r-sm);
}
input:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 158, 79, .16);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:not(:disabled):hover { background: var(--green-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: #e2e8f0; }
.btn-ghost:not(:disabled):hover { background: var(--surface-2); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ink-3);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Short viewports (laptop screens minus browser chrome): compress until the
   whole login fits with no scroll. Placed after every base rule it narrows.
   On desktop each step starts where the tallest card (中文 登录) stops fitting:
   it needs 901px as drawn, 747px after this step and 644px after the next. */
@media (max-height: 800px), (min-width: 901px) and (max-height: 900px) {
  .login-wrap { padding: 60px 4vw 20px; }
  .login-card { padding: 24px 40px 20px; }
  .login-card .brand { font-size: 22px; }
  .login-card .login-sub { margin: 5px 0 14px; }
  .login-card .btn, .login-card input { height: 44px; }
  /* scoped: an unscoped .field here leaks into the in-app forms */
  .login-card .field { margin-bottom: 10px; }
  .divider { margin: 10px 0; }
  .login-links { margin: -2px 0 10px; }
  .login-reg { margin: 12px 0 0; }
  .login-hero :is(h1, h2) { font-size: 44px; }
  .lg-foot { padding: 12px 40px; }
}

/* Desktop: the footer is pinned to the bottom of the wrap, so the wrap keeps
   the footer's height clear under the card. */
@media (min-width: 901px) and (max-height: 900px) {
  .login-wrap { padding-bottom: 52px; }
  .lg-foot { padding: 12px 40px; }
}
@media (min-width: 901px) and (max-height: 746px) {
  .login-wrap { padding-top: 54px; padding-bottom: 46px; }
  .lg-top { padding: 14px 40px; }
  .lg-logo { height: 44px; }
  .login-card { padding: 16px 34px 14px; }
  .lg-tabs { margin: -2px 0 12px; }
  .lg-tab { font-size: 15px; padding: 4px 0 8px; }
  .login-card .brand { font-size: 19px; }
  .login-card .login-sub { font-size: 12.5px; margin: 2px 0 10px; }
  .login-card .btn, .login-card input { height: 40px; }
  .login-card .field { margin-bottom: 7px; }
  .login-card .field > span:first-child { font-size: 13px; margin-bottom: 3px; }
  .divider { margin: 7px 0; }
  .login-links { margin: -2px 0 6px; }
  .login-reg { margin: 8px 0 0; font-size: 12.5px; }
  .lg-terms { margin: 6px 0 0; font-size: 11.5px; }
  .login-hero :is(h1, h2) { font-size: 38px; }
  .lg-foot { padding: 10px 40px; font-size: 12px; }
}
/* A 1080p laptop at 150% scaling leaves about 1280x580: the footer gives its
   room to the card, which also drops the intro the headline already makes. */
@media (min-width: 901px) and (max-height: 643px) {
  .lg-foot, .lg-about { display: none; }
  .login-wrap { padding-bottom: 12px; }
}

/* Phones: everything — headline, card, footer — inside one viewport, no
   scrolling. Last in the login cascade so nothing above can undo it. */
@media (max-width: 560px) {
  .login-wrap { padding: 58px 14px 8px; gap: 12px; }
  .login-hero :is(h1, h2) { font-size: 24px; }
  .login-card { padding: 18px 18px 14px; border-radius: 18px; }
  .login-card .brand { font-size: 19px; }
  .login-card .login-sub { font-size: 12.5px; margin: 4px 0 12px; }
  .login-card .btn, .login-card input { height: 42px; }
  .login-card .field { margin-bottom: 8px; }
  .login-card .field span { margin-bottom: 4px; }
  .divider { margin: 8px 0; }
  .login-links { margin: -2px 0 8px; }
  .login-reg { margin: 10px 0 0; font-size: 12.5px; }
  .lg-top { padding: 14px 16px; }
  .lg-logo { height: 40px; }
  /* footer pinned to the viewport bottom; the wrap's bottom padding keeps
     the centered card clear of it */
  .login-wrap { padding-bottom: 68px; }
  .lg-foot { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 8px 8px; font-size: 12px; gap: 5px; }
  .lg-foot > div:first-child { gap: 14px; }
}

/* Phone login (per design): light blurred stadium, dark copy, tagline back,
   glowing green CTA, letter-spaced brand mark as the footer. Placed last in
   the login cascade so it overrides the dark-hero rules above. */
@media (max-width: 767px) {
  .login-wrap {
    /* white-to-black veil: light behind the dark headline up top, sinking
       into dark ground under the card so the stadium reads through the middle */
    background:
      linear-gradient(180deg,
        rgba(255, 255, 255, .92) 0%,
        rgba(255, 255, 255, .5) 32%,
        rgba(20, 30, 24, .45) 68%,
        rgba(6, 12, 9, .92) 100%),
      url(img/login-bg.webp) left center / cover no-repeat, #0d3b26;
  }
  .lg-foot::after { color: rgba(255, 255, 255, .55); }
  .lg-top { color: var(--ink); }
  .login-hero { color: var(--ink); }
  .login-card { box-shadow: 0 24px 60px -28px rgba(15, 40, 25, .3); }
  .login-card input { background-color: #eef2f6; border-color: #e3e9f0; }
  .login-card .btn-primary {
    background: linear-gradient(135deg, #1cab60, var(--green-dark));
    box-shadow: 0 14px 30px -10px rgba(0, 122, 61, .6);
  }
  .login-hero :is(h1, h2) { font-size: 30px; line-height: 1.25; }
  .login-links .link-btn, .login-reg .link-btn { color: var(--green); }
  /* :first-child matches the base rule's specificity so display:flex loses */
  .lg-foot > div:first-child, .lg-foot > div:last-child { display: none; }
  .lg-foot::after {
    content: "FOOTBALL LIVES HERE";
    display: block; width: 100%; text-align: center;
    font-size: 10.5px; font-weight: 600; letter-spacing: .38em;
    color: #b3c3b8;
  }
}

/* Status messages never rely on colour alone — each carries a word. */
.msg { margin-top: 16px; font-size: 13px; padding: 10px 12px; border-radius: var(--r-sm); }
.msg-error { color: #8A1F19; background: #FDECEA; border: 1px solid #F5C6C2; }
.msg-info { color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
.msg-ok { color: #0A5B33; background: #E8F6EE; border: 1px solid #B9E3CC; }

/* ── app shell: dark ground, sidebar, white rounded main ───────────────── */

.shell {
  display: flex;
  height: 100vh;
  padding: 20px 24px 20px 12px;
  gap: 4px;
  overflow: hidden;
}

.sidebar {
  width: 240px;
  flex: 0 0 240px;
  color: var(--side-ink);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.side-brand { padding: 6px 16px 18px; }
.side-brand img { display: block; height: 64px; width: auto; }

.nav-sec {
  padding: 16px 16px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7b8f81;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--r-sm);
  color: var(--side-ink);
  font-size: 14px;
  text-decoration: none;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item:hover { background: var(--ground-2); color: var(--green-dark); }
.nav-item[aria-current="page"] {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(0, 158, 79, .55);
}
.nav-quiet { color: #7b8f81; font-size: 13px; }
.nav-quiet:hover { color: #d33a2c; background: var(--ground-2); }

.sidebar-foot { margin-top: auto; padding: 10px 6px 8px; }
.who { padding: 8px 16px 6px; font-size: 12px; color: #55675c; font-weight: 600; word-break: break-all; }

/* The white panel. It owns the scrolling; the page itself never scrolls. */
.main {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 32px;
  overflow-y: auto;
  /* the space is kept even on pages too short to scroll, so centred content
     does not shift by half a scrollbar when switching between pages */
  scrollbar-gutter: stable;
  box-shadow: 0 18px 45px -18px rgba(23, 60, 35, .25);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  padding: 22px 32px 16px;
  border-bottom: 1px solid var(--line);
}
.topbar h2 { font-size: 26px; font-weight: 800; }
.topbar p { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
.topbar-mark {
  float: right;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .5;
  pointer-events: none;
}
.topbar-mark img { width: 96px; height: auto; }

.page-body-wrap { padding: 22px 32px 44px; }

/* ── content blocks ────────────────────────────────────────────────────── */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.tile-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.tile-label svg { width: 22px; height: 22px; flex: none; color: var(--green); }
.tile-value { font-size: 32px; font-weight: 800; margin-top: 6px; letter-spacing: -0.03em; }
.tile-note { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
/* the faint mark sits behind the text, never over it */
.tile-label, .tile-value, .tile-note { position: relative; z-index: 1; }
.tile-mark {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 84px;
  height: 84px;
  opacity: .12;
  color: var(--green);
  pointer-events: none;
}
.tile-mark svg { width: 100%; height: 100%; }
.card h2 svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; color: var(--green); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-top: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.card h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

/* An empty state always says what is happening. A blank card is a bug. */
.empty { color: var(--ink-3); font-size: 14px; padding: 22px 0; text-align: center; }

.tabs { display: inline-flex; gap: 8px; margin-top: 2px; }
.tab {
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
}
.tab.on {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 158, 79, .55);
}

.hint { color: var(--ink-3); font-size: 13px; margin: 0 0 16px; }
.count { color: var(--ink-3); font-weight: 400; font-size: 13px; }

select {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--r-sm);
}
select:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }

/* Badges pair colour with a word, so meaning survives colour blindness,
   greyscale printing and a screen reader. */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.b-red { background: #FDE8E8; color: #C81E1E; border: 1px solid #F5C6C6; }
.b-black { background: #F1F2F4; color: #33383F; border: 1px solid #D8DBE0; }
.b-push { background: #FBF3E4; color: #6B5220; border: 1px solid #EBD9B4; }
.b-open { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }

.sum-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.card-sub { color: var(--ink-3); font-size: 13px; margin-top: 3px; }

.sum-chips { display: flex; gap: 12px; }
.sum-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.sum-chip .dot { width: 28px; height: 28px; }
.sum-chip b { font-size: 18px; }
.n-red { color: #C81E1E; }
.n-black { color: #33383F; }
.n-push { color: #B98A1B; }

.dots { display: flex; flex-wrap: wrap; gap: 12px 14px; padding: 16px 0 2px; }
.dot-i { display: grid; justify-items: center; gap: 5px; }
.dot {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 12px; font-weight: 600;
}
.dot-n { font-size: 12px; color: var(--ink-3); }
.dots-axis { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.dots-axis::before { content: ''; order: 1; flex: 1; border-top: 1px dashed var(--line); }
.dots-axis span:last-child { order: 2; }

/* Weekly stacked bars, plain CSS. Pill row / bar band / label row have fixed
   heights so the axis numbers line up with the gridlines behind the bars. */
.wk-chart { display: flex; gap: 12px; margin-top: 18px; }
.wk-axis {
  display: flex; flex-direction: column; justify-content: space-between;
  margin: 28px 0 34px;
  font-size: 11px; color: var(--ink-3); text-align: right;
}
.wk-axis span { line-height: 0; }
.wk-cols { position: relative; flex: 1; display: flex; }
.wk-cols::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 28px; bottom: 34px;
  background: linear-gradient(to top, var(--line) 1px, transparent 1px);
  background-size: 100% calc(100% / var(--ax));
}
.wk-col { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; }
.wk-rate {
  height: 20px; margin-bottom: 8px;
  display: inline-flex; align-items: center;
  padding: 0 8px; border-radius: 999px;
  background: #FDECEC; color: #C9373C;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.wk-bars { height: 190px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.wk-stack {
  width: min(56px, 70%);
  display: flex; flex-direction: column;
  border-radius: 8px; overflow: hidden;
}
.wk-seg {
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 600;
  min-height: 0;
}
.wk-red { background: #E5484D; }
.wk-black { background: #8A8F98; }
/* two lines, Monday over Sunday, so a range fits a narrow column */
.wk-week { height: 34px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; line-height: 1.25; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.wk-week i { font-style: normal; color: var(--ink-3); }
.wk-col .wk-rate.wk-none { background: none; color: var(--ink-3); font-weight: 500; }

.wk-rate i { display: none; } /* the card title already says 每周红率; 12 columns leave no room for the prefix */
/* phones: columns get narrow, so the pill drops its prefix and slims down */
@media (max-width: 560px) {
  .wk-rate { padding: 0 6px; font-size: 10.5px; max-width: 100%; white-space: nowrap; }
  .wk-rate i { display: none; }
  .wk-seg { font-size: 10.5px; }
  .wk-week { font-size: 10.5px; }
}
/* 12 weeks do not fit a phone, so the chart scrolls sideways */
@media (max-width: 760px) {
  .wk-chart { overflow-x: auto; overscroll-behavior-x: contain; }
  .wk-cols { min-width: 528px; }
}

.wk-legend { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--ink-2); padding-top: 4px; }
.wk-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.lg-red { background: #E5484D; }
.lg-black { background: #8A8F98; }

/* Wide content scrolls inside its own box; the panel never scrolls sideways. */
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vs { color: var(--ink-3); font-size: 12px; }
.note { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.locked { color: var(--ink-3); font-size: 12px; }

.link-btn {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 13px;
  color: var(--ink-2);
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: var(--red); }

.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 16px; margin: 12px 0 0; }
.kv dt { color: var(--ink-3); font-size: 13px; }
.kv dd { margin: 0; }

/* The tipster mounts into .tp-host's shadow root and keeps its own styling.
   bare page (AI 分析): it fills the panel edge to edge, no topbar, no page
   padding, no frame. */
.tp-host { display: block; }
.tp-stack { display: grid; }
.tp-stack > * { grid-area: 1 / 1; min-width: 0; }
.tp-held { visibility: hidden; }
.main.bare .page-body-wrap { padding: 0; }
/* the embedded tipster lives in a shadow root; custom properties cross into it,
   so its title block takes the topbar's ink (the tipster has its own --ink)
   and its side gutter matches .page-body-wrap's in each frame */
.main.bare { --tp-head-ink: var(--ink); }
@media (min-width: 768px) {
  .main.bare { --tp-gutter: 32px; }
  html[data-ui="1.1"] .main.bare { --tp-gutter: 22px; }
}

/* AI 分析 tabs: 聊天 and 智能分析 share the page; the tipster's content column
   is this wide too, so the tabs sit in line with it. */
.an-wrap { max-width: 1120px; margin: 0 auto; padding: 24px 22px 0; }
/* the chat panel sizes itself to the screen, so the frame never needs to scroll */
.main.bare:has(.an-pane:not([hidden])) { overflow: hidden; padding-bottom: 0; }
.an-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.an-tab {
  min-height: 44px; padding: 0 20px;
  color: var(--ink-2); background: transparent; font: inherit; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer;
  transition: color var(--motion-fast), background var(--motion-fast);
}
.an-tab:hover { color: var(--ink); background: var(--ground-2); }
.an-tab[aria-selected="true"] { color: #fff; background: var(--green); border-color: var(--green); }
html[data-theme="dark"] .an-tab[aria-selected="true"] { color: #04110a; }
@media (max-height: 760px) {
  .an-wrap { padding-top: 14px; }
  .an-tabs { margin-bottom: 8px; }
  .an-tab { min-height: 40px; }
}
@media (max-width: 760px) {
  .an-wrap { padding: 12px 12px 0; }
  .an-tab { flex: 1; padding: 0 8px; }
}

/* ── history row cards (预测记录 / 分析记录 share the layout) ───────────── */
.hrows { margin-top: 8px; }
/* plain rows with a hairline between them: the card is the only container */
.hrow {
  display: grid;
  grid-template-columns: 200px 190px minmax(0, 1fr) 100px 76px;
  gap: 16px;
  align-items: center;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
}
.hrow:first-child { border-top: 0; }
/* 预测记录 rows: the pick and its 观点 take the flexible column; status,
   time and action get fixed narrow tracks so they line up down the list */
.hrow.call { grid-template-columns: 200px minmax(0, 1fr) 112px 92px 150px; gap: 24px; }
/* 分析记录 and 预测记录: one grid for the whole list with each row a subgrid,
   so the narrow columns shrink to their widest entry and still line up; the
   criteria chips (分析记录) or the pick and 观点 (预测记录) take the rest */
.hrows.runs { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr) max-content max-content; }
.hrows.calls { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content max-content max-content; }
.hrows:is(.runs, .calls) > .hrow { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: 28px; }
.hhead { padding: 0 4px 10px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.h-note {
  margin: 6px 0 0; max-width: 65ch;
  font-size: 13px; line-height: 1.7; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.h-note.open { display: block; }
.h-more {
  margin-top: 4px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--green);
}
.h-team { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; padding: 2px 0; }
.h-team img { width: 22px; height: 22px; flex: none; }
.h-analyst { display: flex; align-items: center; gap: 10px; }
.h-avatar {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: #e8f6ee; color: var(--green-dark);
  border-radius: 12px; font-size: 12px; font-weight: 800;
}
.h-avatar.av-ai { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; }
/* uploaded profile picture fills the same tile everywhere initials would sit */
.h-avatar.av-img { background: var(--surface-2); overflow: hidden; }
.h-avatar.av-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ai-tag {
  font-size: 10.5px; font-weight: 800; vertical-align: 2px;
  color: var(--green-dark); background: #E8F6EE;
  border: 1px solid #B9E3CC; border-radius: 6px; padding: 1px 6px;
}


/* report overlay: the saved analysis opens in place, no page switch */
.modal-ov {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 30, 20, .45);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 24px;
}
.modal-box {
  position: relative;
  width: min(1160px, 100%);
  height: min(88vh, 100%);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 40px 90px -20px rgba(10, 30, 18, .5);
  overflow: hidden;
}
.modal-box .tp-host { height: 100%; overflow-y: auto; overscroll-behavior: contain; }

/* 高手 report: the member's 观点 rides on top of the full analysis */
.modal-box:has(.mr-opinion) { display: flex; flex-direction: column; }
.modal-box:has(.mr-opinion) .tp-host { flex: 1; height: auto; min-height: 0; }
/* per design: the 观点 is its own green-bordered card above the report */
.mr-opinion {
  flex: none;
  margin: 12px 64px 4px 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1.5px solid var(--green);
  border-radius: 18px;
}
.mr-oh { display: flex; align-items: flex-start; gap: 14px; }
.mr-oh .h-avatar { width: 56px; height: 56px; border-radius: 12px; flex: none; font-size: 15px; }
.mr-who { flex: 1; min-width: 0; }
.mr-name { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.mr-name b { font-size: 16px; color: var(--ink); }
.mr-who .pl-best { margin-top: 6px; }
.mr-tg {
  flex: none; align-self: center; border: 1.5px solid var(--green); background: none; cursor: pointer; font: inherit;
  color: var(--green); font-size: 13px; font-weight: 800; border-radius: 999px; padding: 6px 16px;
}
.mr-tg i { font-style: normal; margin-left: 6px; }
.mr-opinion p {
  margin: 12px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--green-dark); white-space: pre-line;
  max-height: 150px; overflow-y: auto;
}
@media (max-width: 560px) {
  .mr-opinion { margin: 54px 10px 4px; padding: 12px 14px; }
  .mr-oh .h-avatar { width: 44px; height: 44px; }
  .mr-tg { padding: 4px 10px; font-size: 12px; }
  .mr-opinion p { max-height: 110px; font-size: 13px; }
}
.modal-x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.modal-x:hover { background: #e2e8f0; }
.modal-x svg { width: 17px; height: 17px; }
/* the add-prediction overlay sizes to the form, not the viewport */
.modal-add { width: min(720px, 100%); height: auto; max-height: 90vh; overflow-y: auto; }
.modal-add .card { margin-top: 0; border: 0; box-shadow: none; }
/* free expert peek: a small centred reveal */
.modal-peek { width: min(460px, 92%); height: auto; max-height: 88vh; padding: 26px 26px 18px; overflow-y: auto; }
/* the whole dialog scrolls, so the close button rides along sticky. Own row,
   right-aligned by auto margin — float inside a scroll container is unreliable. */
.modal-peek .modal-x {
  position: sticky; top: -14px; right: auto;
  margin: -14px -14px -22px auto;
}
/* every scrollbar on the site: slim, rounded, panel-green — the OS default
   arrows-and-grey bar breaks the look wherever content overflows */
* { scrollbar-width: thin; scrollbar-color: #c3d4c8 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c3d4c8; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }
::-webkit-scrollbar-button { display: none; }

/* slim rounded scrollbar, inset from the dialog's rounded corners */
.modal-peek { scrollbar-width: thin; scrollbar-color: #c3d4c8 transparent; }
.modal-peek::-webkit-scrollbar { width: 6px; }
.modal-peek::-webkit-scrollbar-track { background: transparent; margin: 22px 0; }
.modal-peek::-webkit-scrollbar-thumb { background: #c3d4c8; border-radius: 999px; }
.modal-peek::-webkit-scrollbar-thumb:hover { background: var(--green); }
/* peek redesign: header, icon stat pills, tinted recommendation cards */
.pk-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.pk-head .h-avatar { width: 46px; height: 46px; font-size: 16px; }
.pk-name { font-weight: 800; font-size: 16.5px; }
.pk-slogan { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
/* all three pills share one row on phones at normal text size; enlarged text
   wraps them instead of running over the caption */
.pk-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pk-stat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 9px; border-radius: 11px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.pk-stat svg { width: 13px; height: 13px; flex: none; display: block; }
.pk-warm { background: #FDEEEC; color: #d33a2c; }
.pk-cool { background: #E8F6EE; color: #0A7C46; }
.pk-match { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 16px 0 10px; }
.pk-match b { font-size: 17px; }
.pk-match span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.pk-card { position: relative; display: flex; align-items: center; gap: 14px; border-radius: 16px; padding: 14px 16px; margin-top: 10px; }
.pk-main { background: #EAF7EF; border: 1px solid #CDEBDA; }
.pk-goal { background: #FDF6E7; border: 1px solid #F1E3C2; }
.pk-ic {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: #fff;
  overflow: hidden;  /* nothing inside may escape the circle */
}
.pk-main .pk-ic { color: #0A7C46; }
.pk-goal .pk-ic { color: #8a6100; }
.pk-ic svg { width: 28px; height: 28px; display: block; }
.pk-ic img { width: 46px; height: 46px; display: block; }
.pk-body { min-width: 0; }
.pk-chip {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 7px; background: #fff;
}
.pk-main .pk-chip { color: #0A7C46; }
.pk-goal .pk-chip { color: #8a6100; }
.pk-big { font-size: 23px; font-weight: 900; margin: 4px 0 2px; }
.pk-main .pk-big { color: #0A5B33; }
.pk-goal .pk-big { color: #7a5600; }
.pk-sub { font-size: 12px; color: var(--ink-2); }
.pk-op { background: #EEF1F6; border: 1px solid #E1E6EF; display: block; }
.pk-oplabel { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.pk-oplabel svg { width: 17px; height: 17px; }
.pk-optext { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); white-space: pre-line; }
.pk-hint {
  display: flex; align-items: center; gap: 9px;
  margin-top: 12px; padding: 11px 14px; border-radius: 12px;
  background: var(--surface-2); font-size: 12.5px; color: var(--ink-2);
}
.pk-hint svg { width: 17px; height: 17px; flex: none; color: #8a6100; }
.peek-badges { margin-top: 10px; }
.peek-crits { margin-top: 12px; display: grid; gap: 8px; }
.peek-crit {
  display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; text-align: left;
}
.peek-crit b { font-size: 12.5px; color: var(--green-dark); }
.peek-crit span { font-size: 13px; line-height: 1.65; color: var(--ink-2); }

/* 分析依据 chips + per-criterion fields in the add form */
.crit-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip-crit { cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12.5px; padding: 5px 12px; }
.chip-crit.on { background: #E8F6EE; border-color: var(--green); color: #0A5B33; font-weight: 700; }
.crit-field { display: block; margin-bottom: 10px; }
.crit-field > span { display: block; font-size: 12.5px; color: var(--green-dark); font-weight: 700; margin-bottom: 4px; }
.crit-field textarea {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--ink);
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; resize: vertical;
}
.crit-field textarea:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 158, 79, .16); }
.peek-score {
  margin-top: 10px; text-align: center;
  background: #FBF3E4; border: 1px solid #EBD9B4; color: #6B5220;
  border-radius: 999px; padding: 9px 14px;
  font-size: 13.5px; font-weight: 700;
}
.peek-score b { font-size: 16px; margin-left: 4px; }

.ai-summary {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px; line-height: 1.7; color: var(--ink-2);
  max-height: 130px; overflow-y: auto;
}
@media (max-width: 767px) {
  .modal-ov { padding: 0; }
  .modal-box { width: 100%; height: 100%; border-radius: 0; }
  /* the peek is short content: a floating card over the dim, never fullscreen */
  .modal-ov:has(.modal-peek) { padding: 16px; }
  .modal-box.modal-peek { width: 100%; height: auto; max-height: 90vh; border-radius: 22px; }
}
.h-title { font-weight: 700; font-size: 14px; }
.h-sub { color: var(--ink-3); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  background: #eef7f0; color: var(--green-dark);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; white-space: nowrap;
}
.h-outcome { display: flex; align-items: center; gap: 8px; }
.h-score { font-weight: 700; font-size: 13px; }
.h-time { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.h-act { text-align: right; }
.row-btn {
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--green); background: var(--surface);
  border: 1px solid #cde9d9; border-radius: var(--r-sm);
  padding: 7px 14px; cursor: pointer;
}
.row-btn:hover { background: #f0faf4; }
.row-btn.danger { color: #b3402f; border-color: #f0d4cf; }
.row-btn.danger:hover { background: #fdf1ef; }
/* armed 撤回: the second tap deletes, so it must look committed */
.row-btn.danger.armed { background: #b3402f; border-color: #b3402f; color: #fff7f5; }
@media (pointer: coarse) { .row-btn { min-height: 44px; } }
@media (max-width: 900px) {
  .hrow, .hrow.call { grid-template-columns: 1fr auto; gap: 12px 16px; }
  .h-crit, .h-analyst, .h-main { grid-column: 1 / -1; }
  /* 撤回 / 已锁定 pins to the card's top-right instead of a bottom row */
  .h-act { grid-column: 2; grid-row: 1; align-self: start; }
  .hrows:is(.runs, .calls) { display: block; }
  .hrows:is(.runs, .calls) > .hrow { grid-template-columns: 1fr auto; column-gap: 16px; }
  .hrows:is(.runs, .calls) > .hhead { display: none; }
}

/* custom dropdown (fancySelect) */
.fsel { position: relative; display: block; }
.fsel select { display: none; }
.fsel-btn {
  width: 100%; height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface); color: var(--ink);
  border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 0 14px; font: inherit; font-weight: 600; cursor: pointer;
  text-align: left;
}
.fsel-btn:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 158, 79, .16); }
.fsel-btn svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
/* bold CJK in Noto Sans SC inks 3.5px above the line box centre; measured, so icon, text and arrow share one line */
.fsel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; top: 3px; }
.sel-wrap .fsel-btn { padding-left: 42px; }
.fsel-list {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 45px -12px rgba(23, 60, 35, .28);
  max-height: 320px; overflow-y: auto; padding: 6px;
}
.fsel-item {
  padding: 10px 12px; border-radius: 9px; cursor: pointer;
  font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fsel-item:hover { background: var(--surface-2); }
.fsel-item.on { background: #E8F6EE; color: #0A5B33; font-weight: 600; }

/* 添加预测 form */
/* row gap matches .field's margin-bottom, and the fields inside drop their
   own margins - otherwise grid rows sit 30px apart while the rest sit 14px */
.add-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.add-grid .field { margin-bottom: 0; }
/* min-width:0 so a long fixture label ellipsizes instead of widening the page */
.add-grid .field, .add-grid .sel-wrap, .add-grid .fsel { min-width: 0; }
.add-grid .field[id="wrap-line"] { grid-column: auto; }
/* the chosen 大小球 line in plain words (split stake, push) */
.line-hint { margin: -4px 0 14px; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); background: var(--ground-2); }
@media (max-width: 900px) { .add-grid { grid-template-columns: 1fr; } }
.sel-wrap { position: relative; display: block; }
.sel-wrap > svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--green); pointer-events: none;
  z-index: 1;
}
.sel-wrap select { height: 52px; border-radius: 12px; padding-left: 42px; font-weight: 600; }
#f-summary { padding-left: 13px; }

.score-wrap { display: flex; align-items: center; gap: 10px; }
.score-wrap input { width: 96px; height: 52px; border-radius: 12px; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.score-wrap input::-webkit-inner-spin-button,
.score-wrap input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.score-wrap b { color: var(--ink-3); }

.txt-wrap { position: relative; display: block; }
.txt-wrap svg { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.txt-wrap textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 13px 13px 24px 42px; resize: vertical; min-height: 96px;
}
.txt-wrap textarea:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 158, 79, .16); }
.txt-count { position: absolute; right: 14px; bottom: 10px; font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.info-strip {
  display: flex; align-items: center; gap: 10px;
  background: #E8F6EE; color: #0A5B33;
  border-radius: var(--r-sm); padding: 13px 16px;
  font-size: 14px; margin: 18px 0;
}
.info-strip svg { width: 18px; height: 18px; flex: none; }
.btn-record { height: 54px; font-size: 16px; font-weight: 700; border-radius: 14px; }
.btn-record .arrow { margin-left: 6px; }
.btn-record.is-idle { opacity: .55; }

/* 用户排行榜 rank rows */
.rank-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.rank-head .tabs { margin-left: auto; }
.rank-head-ic {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; border-radius: 14px;
}
.rank-head-ic svg { width: 24px; height: 24px; }

/* top 3: gold / silver / bronze glow, kept light so the stats stay the focus */
.rank-1 { --glow: 245, 158, 11; }
.rank-2 { --glow: 148, 163, 184; }
.rank-3 { --glow: 234, 88, 12; }





.m-1 { color: #e8b019; }
.m-2 { color: #a9b6c2; }
.m-3 { color: #cd8a4e; }








/* a live streak should read at a glance */




@media (max-width: 900px) {

  /* 2x2 grid filling the card width instead of uneven wrapped chips; the
     stats sort last so the badge sits top-right beside the name */


  /* own left-aligned line between the name and the stats grid */


}

/* AI 分析师排行榜 table */
.an-table { border-collapse: separate; border-spacing: 0 8px; width: 100%; }
.an-table thead th {
  background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600;
  padding: 10px 12px; text-align: left;
}
.an-table thead th:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.an-table thead th:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.an-table tbody td { padding: 10px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.an-table tbody tr td:first-child { border-left: 1px solid var(--line); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.an-table tbody tr td:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.an-table .detail-row td { border: 0; padding: 0 8px 6px; }
.an-name { font-weight: 700; font-size: 14.5px; }
.pct-cell b { display: block; font-size: 14.5px; }
.bar-track {
  display: block; width: 110px; height: 8px; margin-top: 4px;
  background: #e8edea; border-radius: 4px; overflow: hidden;
}
.bar-fill { display: block; height: 100%; background: var(--green); border-radius: 4px; }


td.num.roi-pos, .roi-pos { color: #0A8A4A; font-weight: 700; }
td.num.roi-neg, .roi-neg { color: #d33a2c; font-weight: 700; }
.rk-chip {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 30px; padding: 0 6px;
  background: var(--surface-2); border-radius: 50%;
  font-weight: 700; color: var(--ink-2);
}

/* 优质高手预测 cards */




.chip-hot { background: #fdefe9; color: #b3402f; }





/* admin-only expandable pick detail under an analyst ranking row */
.detail-row > td { padding: 0 8px 14px; }






/* ── 账户设置 ──────────────────────────────────────────────────────────── */

.ac-card { margin-bottom: 14px; }
.ac-card h2 { margin-bottom: 14px; }
.ac-av-row { display: flex; gap: 18px; align-items: flex-start; }
.ac-av {
  width: 84px; height: 84px; flex: none;
  display: grid; place-items: center;
  background: #e8f6ee; color: var(--green-dark);
  border-radius: 22px; font-size: 24px; font-weight: 800;
  overflow: hidden;
}
.ac-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-av-txt { min-width: 0; }
.ac-av-txt .h-sub { margin: 3px 0 12px; }
.ac-av-txt .msg, .ac-form .msg { margin-top: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.ac-form { max-width: 380px; }
.ac-form input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: inherit; background: var(--surface); color: var(--ink);
}
.ac-form input:focus { outline: none; border-color: var(--green); }
.ac-card .btn { width: auto; padding: 10px 24px; margin-top: 4px; }
.ac-card .ac-home { margin-top: 22px; text-decoration: none; }
.ac-card .ac-logout { margin-top: 10px; }

/* ── 近期预测 ──────────────────────────────────────────────────────────── */

.rp-datebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  margin-bottom: 12px;
}
.rp-nav {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-2);
  cursor: pointer;
}
.rp-nav svg { width: 17px; height: 17px; }
.rp-nav:hover:not(:disabled) { background: var(--ground-2); color: var(--green-dark); }
.rp-nav:disabled { opacity: .35; cursor: default; }
.rp-cal-wrap { position: relative; }
.rp-date {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 10px;
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 800;
  padding: 8px 14px; cursor: pointer;
}
.rp-date svg { width: 15px; height: 15px; color: var(--ink-3); }
.rp-date:hover { background: var(--ground-2); }

.rp-cal {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  z-index: 25;
  width: 292px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, .25);
  padding: 14px;
}
.rp-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.rp-cal-head b { font-size: 14px; }
.rp-cnav {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-2); cursor: pointer;
}
.rp-cnav svg { width: 14px; height: 14px; }
.rp-cnav:hover:not(:disabled) { background: var(--ground-2); color: var(--green-dark); }
.rp-cnav:disabled { opacity: .35; cursor: default; }
.rp-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px; justify-items: center; text-align: center;
}
.rp-cal-grid i {
  font-style: normal; font-size: 11px; color: var(--ink-3);
  font-weight: 600; padding: 4px 0;
}
.rp-cd {
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: none; color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
/* a day with picks reads as pickable at a glance, the same as the AI 分析 picker */
.rp-cd:not(:disabled) { color: var(--green); }
.rp-cd:hover:not(:disabled) { background: var(--ground-2); }
.rp-cd:disabled { color: var(--ink-3); opacity: .5; cursor: default; font-weight: 400; }
.rp-cd.om { opacity: .35; }
.rp-cd.on { background: var(--green); color: #fff; }
.rp-cd.td:not(.on) { box-shadow: inset 0 0 0 1.5px var(--green); }

.rp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
/* 1.1 team search and the always-visible pick split under each match */
.rp-search { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-3); }
.rp-search svg { width: 18px; height: 18px; flex: none; }
.rp-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; color: var(--ink); font: inherit; outline: none; }
.rp-search:focus-within { border-color: var(--green); }
.rp-split { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 18px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.rp-split > span { white-space: nowrap; }
.rp-split .rpc-n { color: var(--green-dark); font-weight: 800; }
.rp-split b { color: var(--ink); font-weight: 800; }
.rp-split .rpc-sep, .rp-ai .rpc-sep { width: 1px; height: 12px; background: var(--line); }
.rp-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 0 18px 14px; font-size: 13px; color: var(--ink-2); }
.rp-ai > span { white-space: nowrap; }
.rp-ai b { color: var(--ink); font-weight: 800; }
/* 1.0 has no split line above it */
.rp-mhead + .rp-ai { padding-top: 10px; border-top: 1px solid var(--line); }
.rp-ai-l { padding: 1px 6px; border-radius: 4px; background: var(--green-dark); color: #fff; font-size: 11px; font-weight: 800; }
.rp-ai-who { border: 0; font-family: inherit; cursor: pointer; }
.rp-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 18px 14px; font-size: 13px; color: var(--ink-2); }
.rp-warn-who { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.rp-warn-who .h-avatar, .rp-warn-who img { width: 22px; height: 22px; }
.rp-warn-txt { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.rp-warn-op { flex-basis: 100%; white-space: pre-line; line-height: 1.6; color: var(--ink-2); }
/* 关注 sits at the end of the split line; filled once followed */
.rp-follow { margin-left: auto; min-height: 32px; padding: 0 14px; border: 1px solid var(--green); border-radius: 999px; background: none; color: var(--green); font: 700 12.5px var(--body); cursor: pointer; }
.rp-follow.on { background: var(--green); color: #fff; }
html[data-theme="dark"] .rp-follow.on { color: #04110a; }
.rp-follow:disabled { opacity: .6; cursor: wait; }
.rp-fchip {
  padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.rp-fchip:hover { border-color: var(--green); color: var(--green-dark); }
.rp-fchip.on { background: var(--green); border-color: var(--green); color: #fff; }

.rp-match {
  padding: 0; overflow: hidden; margin-bottom: 12px;
  animation: rp-in .32s cubic-bezier(.22, 1, .36, 1) backwards;
}
@keyframes rp-in { from { opacity: 0; transform: translateY(8px); } }
.rp-mhead {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 14px 16px;
  border: 0; background: none;
  font: inherit; text-align: left; cursor: pointer;
}
.rp-mhead:hover { background: rgba(0, 158, 79, .04); }
.rp-mhead[aria-expanded="true"] { background: rgba(0, 158, 79, .03); }
.rp-logos { display: flex; align-items: center; flex: none; }
.rp-logos img {
  width: 26px; height: 26px; object-fit: contain;
  background: #fff; border-radius: 50%;
  border: 1.5px solid var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}
.rp-logos img + img { margin-left: -8px; }
.rp-teams { font-weight: 800; font-size: 14.5px; min-width: 0; }
.rp-teams i { font-style: normal; color: var(--ink-3); font-weight: 600; font-size: 11.5px; margin: 0 5px; }
.rp-meta { margin-left: auto; text-align: right; flex: none; line-height: 1.3; }
.rp-meta b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.rp-meta span { font-size: 11.5px; color: var(--ink-3); }
.rp-flag {
  flex: none;
  background: #fef3c7; color: #b45309;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  border-radius: 999px; padding: 4px 10px;
}
.rp-flag-pro { background: #e8f6ee; color: #0a7c46; }
.rp-count {
  display: inline-flex; align-items: center; gap: 7px;
  flex: none;
  color: var(--ink-2);
  font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rp-avs { display: flex; }
.rp-avs .h-avatar {
  width: 24px; height: 24px;
  font-size: 10px; border-radius: 8px;
  border: 2px solid var(--surface);
  box-shadow: none;
}
.rp-avs .h-avatar + .h-avatar { margin-left: -7px; }
.rp-chev { width: 14px; height: 14px; transition: transform .18s; }
.rp-mhead[aria-expanded="true"] .rp-chev { transform: rotate(180deg); }

.rp-consensus {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px;
  font-size: 14px; font-weight: 800; color: var(--green-dark);
  border-top: 1px solid var(--line);
}
.rp-consensus .rpc-l { display: inline-flex; align-items: center; gap: 8px; }
.rp-consensus svg { width: 16px; height: 16px; flex: none; }

/* one pick = one bordered card row; the 观点 expands inside it */
.rpx { border: 1px solid var(--line); border-radius: 14px; margin: 0 14px 12px; }
.rp-mbody > .rpx:first-of-type { margin-top: 12px; }
.rpx-head {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px;
  border: 0; background: none; font: inherit; text-align: left; cursor: pointer;
}
.rpx-head:hover { background: rgba(0, 158, 79, .04); border-radius: 14px; }
.rpx-head > .h-avatar, .rpx-head > .av-img {
  width: 52px; height: 52px; border-radius: 50%; font-size: 15px; flex: none;
}
.rpx-who { flex: 1; min-width: 0; line-height: 1.4; }
.rpx-who b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.rpx-who .ver { width: 16px; height: 16px; flex: none; }
.rpx-who > i { font-style: normal; display: block; font-size: 12.5px; color: var(--ink-3); }
.rp-ustats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.rs {
  display: inline-flex; align-items: center; gap: 5px;
  font-style: normal; font-size: 12px; font-weight: 800; line-height: 1.4;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.rs svg { width: 12px; height: 12px; }
.rs-hit { background: #fde8e8; color: #c81e1e; }
.rs-n { background: #e8f6ee; color: #0a7c46; }
.rs-hot { background: #ffedd5; color: #c2410c; }
.rpx-rec { flex: none; display: grid; gap: 8px; justify-items: start; }
.rpx-rec > i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.rpx-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.rp-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 800; white-space: nowrap;
}
.rp-pill svg { width: 16px; height: 16px; }
.rp-pick { background: rgba(0, 158, 79, .1); color: var(--green-dark); }
.rp-score { background: #fef3c7; color: #b45309; font-variant-numeric: tabular-nums; }
/* the locked pick is the product: gold and inviting, never gray-disabled */
.rp-lock { background: #fdf3d2; color: #8a6100; }
.rpx-head:hover .rp-lock { background: #fcecb8; }
.rp-arrow { width: 16px; height: 16px; color: var(--ink-3); margin-left: 2px; flex: none; transition: transform .18s; }
.rpx-head[aria-expanded="true"] .rp-arrow { transform: rotate(-90deg); color: var(--green-dark); }
.rpx-op {
  margin: 0 14px 14px; padding: 16px 18px;
  background: rgba(0, 158, 79, .055); border-radius: 12px;
}
.rpx-oph { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; color: var(--green-dark); }
.rpx-oph svg { width: 16px; height: 16px; }
.rpx-op p { margin: 9px 0 13px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); white-space: pre-line; }
.rpx-opf {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  border-top: 1px dashed rgba(0, 158, 79, .25); padding-top: 12px;
  font-size: 12.5px; color: var(--ink-3);
}
.rpx-opf span { display: inline-flex; align-items: center; gap: 6px; }
.rpx-opf svg { width: 14px; height: 14px; }
.rpx-view {
  margin-left: auto; border: 0; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; color: var(--green-dark);
  background: #fff; border-radius: 10px; padding: 8px 14px;
}
.rpx-view:hover { background: var(--green); color: #fff; }

/* ── 用户主页 modal ── */


.up-box {
  max-width: 680px; width: min(680px, 94vw); max-height: 88vh; overflow-y: auto;
  padding: 26px 28px; border-radius: 18px;
}
.up-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-right: 44px; }
.up-head .h-avatar { width: 62px; height: 62px; border-radius: 50%; font-size: 18px; flex: none; }
.up-id b { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.up-role {
  font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 8px;
  background: var(--surface-2); color: var(--ink-2);
}
.up-role.gold { background: #fef3c7; color: #b45309; }
.up-chips { display: flex; gap: 7px; margin-top: 6px; }
.up-chip {
  font-style: normal; font-size: 11.5px; font-weight: 800;
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; color: var(--ink-2);
}
.up-chip.hot { background: #dc2626; border-color: #dc2626; color: #fff; }
.up-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.up-stats span { background: var(--surface-2); border-radius: 12px; padding: 10px 8px; text-align: center; line-height: 1.5; }
.up-stats i { font-style: normal; display: block; font-size: 11px; color: var(--ink-3); }
.up-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.up-stats em { font-style: normal; color: #dc2626; }
.up-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.up-tag {
  font-size: 14px; font-weight: 700; border-radius: 8px; padding: 6px 12px;
  background: #fdf6e3; color: #8a6100; border: 1px solid #f0e3bb;
}
.up-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.up-ct { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; font-weight: 800; margin: 18px 0 10px; }
.up-card .up-ct { margin-top: 0; }
.up-win { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.up-win button {
  border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700;
  color: var(--ink-3); border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.up-win button.on { background: #fff; color: var(--green-dark); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.up-chart { width: 100%; height: auto; display: block; }
.up-grid { stroke: var(--line); stroke-width: 1; }
.up-lbl { font-size: 10px; fill: var(--ink-3); }
.up-area { fill: rgba(0, 158, 79, .12); }
.up-line { fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linejoin: round; }
.up-dot { fill: #fff; stroke: var(--green); stroke-width: 2; }
/* the trend draws itself once the modal has landed: line left to right,
   area rising from the baseline, each day's dot as the line reaches it */
.up-line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: up-draw 900ms var(--ease-standard) 250ms backwards; }
.up-area { transform-box: fill-box; transform-origin: bottom; animation: up-rise 700ms var(--ease-enter) 450ms backwards; }
.up-dot { transform-box: fill-box; transform-origin: center; animation: up-pop 320ms var(--ease-enter) backwards; }
@keyframes up-draw { from { stroke-dashoffset: 1; } }
@keyframes up-rise { from { opacity: 0; transform: scaleY(0); } }
@keyframes up-pop { from { opacity: 0; transform: scale(0); } }
.up-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; margin-bottom: 8px; font-size: 13px;
}
.up-lg { flex: none; font-size: 11px; font-weight: 700; color: var(--green-dark); background: rgba(0, 158, 79, .09); border-radius: 6px; padding: 2px 8px; }
.up-match { flex: 1 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.up-match i { font-style: normal; color: var(--ink-3); font-size: 11px; padding: 0 3px; }
.up-date { flex: none; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.up-when { flex: none; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.up-call { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--green-dark); }
.up-call svg { width: 13px; height: 13px; }
.up-locked { color: #8a6100; }
.up-empty { color: var(--ink-3); font-size: 13px; text-align: center; padding: 14px 0; }
@media (max-width: 560px) {
  .up-stats { grid-template-columns: repeat(2, 1fr); }
  .up-when { display: none; }
  /* date, pick and result fill the first line: the match takes its own */
  .up-match { order: 1; flex-basis: 100%; }
}

@media (max-width: 420px) {
  .rp-avs { display: none; }
}

.rp-gate { text-align: center; }
.rp-gate > svg { width: 40px; height: 40px; color: var(--ink-3); margin: 8px auto 4px; }
.rp-gate .h-title { font-size: 16px; margin-bottom: 4px; }

@media (max-width: 767px) {
  .rp-meta span { display: none; }
  .rp-flag { display: none; }
  .rp-avs .h-avatar:nth-child(3) { display: none; }
  /* phones: home over away, each name beside its own crest, so long
     names never break mid-word */
  .rp-mhead { gap: 10px; padding: 12px 14px; }
  .rp-logos { flex-direction: column; gap: 6px; }
  .rp-logos img { width: 22px; height: 22px; }
  .rp-logos img + img { margin-left: 0; }
  .rp-teams { flex: 1; display: grid; gap: 6px; font-size: 14px; line-height: 22px; }
  .rp-teams > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rp-teams i { display: none; }
  .rpx { margin: 0 10px 10px; }
  .rpx-head { flex-wrap: wrap; gap: 10px 12px; padding: 12px; }
  .rpx-head > .h-avatar, .rpx-head > .av-img { width: 44px; height: 44px; }
  .rpx-who { flex: 1 1 60%; }
  .rpx-rec { width: 100%; order: 3; }
  .rp-arrow { order: 2; }
  .rpx-op { margin: 0 10px 10px; }
}

/* ── mobile: sidebar becomes the /panel bottom bar ─────────────────────── */

.bottom-nav { display: none; }
.mob-head { display: none; }

@media (max-width: 767px) {
  /* App shell: the DOCUMENT never scrolls - the panel scrolls inside a fixed
     100dvh frame. iOS only collapses the browser toolbar on document scroll,
     and that collapse is what relocated the fixed bottom bar mid-animation
     and left its highlight ghosting at the old position. No document scroll,
     no toolbar dance, no ghost. */
  .shell { padding: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
  .sidebar { display: none; }
  .main {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* 64px bar + the 30px the centre button rises above it */
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }
  /* App bar replaces the desktop page-title bar, like the mock. */
  .topbar { display: none; }
  .mob-head {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }
  /* the wide logo would squeeze the page title on a phone, so the bar keeps the square mark */
  .mob-head > img { content: url(img/mark-u.png); width: 36px; height: 36px; }
  .mh-txt { display: grid; line-height: 1.3; min-width: 0; }
  .mh-txt b { font-size: 15.5px; font-weight: 800; }
  .mh-txt span {
    font-size: 11.5px; color: var(--ink-3);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .mh-spacer { flex: 1; }
  .mh-bell, .mh-avatar {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 0; border-radius: 50%; cursor: pointer;
  }
  .mh-bell { position: relative; background: var(--surface-2); color: var(--ink-2); }
  .mh-bell svg { width: 19px; height: 19px; }
  .mh-avatar {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff; font-weight: 700; font-size: 15px;
    /* the photo must clip to the circle: kill button padding, pin the img */
    position: relative; overflow: hidden; padding: 0;
  }
  .mh-avatar.has-img { background: var(--surface-2); }
  .page-body-wrap { padding: 16px 16px 40px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Tab pills drop to their own full-width row instead of crushing vertical */
  .rank-head { flex-wrap: wrap; }
  .rank-head .tabs { margin-left: 0; width: 100%; }
  .tab { white-space: nowrap; }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(15, 40, 25, .06);
    z-index: 30;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    /* one compositing layer: when iOS relocates the fixed bar as the browser
       toolbar collapses, every child moves in the same frame - otherwise the
       active highlight ghosts at the bar's previous position */
    transform: translateZ(0);
  }
  .bottom-nav .nav-item {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    flex: 1;
    padding: 6px 2px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-3);
    text-align: center;
  }
  .bottom-nav .nav-item svg { width: 20px; height: 20px; }
  .bottom-nav .nav-item:hover { background: none; }
  .bottom-nav .nav-item[aria-current="page"] { background: none; color: var(--green); }
  .bottom-nav .nav-item[aria-current="page"]::after {
    content: '';
    /* centered without transform: a transformed pseudo gets its own GPU
       layer and lags the bar during iOS toolbar collapse */
    position: absolute; bottom: 5px; left: 0; right: 0; margin: 0 auto;
    width: 22px; height: 3px; border-radius: 2px;
    background: var(--green);
  }

  /* Raised center action, like the mock's floating ball button. */
  .bottom-nav .nav-center { color: var(--green); }
  .bottom-nav .nav-center svg {
    width: 44px; height: 44px;
    padding: 12px;
    margin-top: -20px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #e4f2e7, 0 8px 18px -6px rgba(0, 158, 79, .5);
  }
  .bottom-nav .nav-center[aria-current="page"] svg { background: var(--green-dark); }
  /* quieter when another tab is active, so the current page stays unmistakable */
  .bottom-nav .nav-center:not([aria-current="page"]) svg {
    filter: saturate(.75);
    box-shadow: 0 0 0 4px #e4f2e7, 0 6px 12px -6px rgba(0, 158, 79, .35);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── dark theme: every page, toggled from 账户设置, persisted in localStorage.
   Token swap first; the targeted rules below re-tint components whose light
   look is a hardcoded literal. */
html[data-theme="dark"] {
  color-scheme: dark;
  --green: #00d97a;
  --green-dark: #00b467;
  --accent: #2ee6a8;
  --ground: #0a0f0c;
  --ground-2: rgba(0, 217, 122, .12);
  --side-ink: #9fb3a8;
  --ink: #e8eef4;
  --ink-2: #cbd5e1;
  /* #64748b scored 3.3-4:1 on the dark cards, under the 4.5:1 small text needs */
  --ink-3: #94a3b8;
  --surface: #131a17;
  --surface-2: #1a231e;
  --line: rgba(148, 163, 184, .16);
}
html[data-theme="dark"] body {
  background:
    linear-gradient(160deg, rgba(6, 12, 9, .5) 0%, rgba(8, 14, 11, .62) 60%, rgba(6, 11, 9, .74) 100%),
    url(img/side-bg-dark.webp) center / cover no-repeat fixed #0a0f0c;
}
html[data-theme="dark"] .rs-hit { background: rgba(220, 38, 38, .16); color: #f87171; }
html[data-theme="dark"] .rs-n { background: rgba(0, 217, 122, .13); color: #4ade80; }
html[data-theme="dark"] .rs-hot { background: rgba(234, 88, 12, .16); color: #fb923c; }
html[data-theme="dark"] .rp-pick { background: rgba(0, 217, 122, .12); color: #4ade80; }
html[data-theme="dark"] .rp-score,
html[data-theme="dark"] .rp-lock,
html[data-theme="dark"] .rp-flag,
html[data-theme="dark"] .up-role.gold { background: rgba(245, 158, 11, .15); color: #fbbf24; }
html[data-theme="dark"] .rpx-head:hover .rp-lock { background: rgba(245, 158, 11, .24); }
html[data-theme="dark"] .rp-flag-pro { background: rgba(0, 217, 122, .13); color: #4ade80; }
html[data-theme="dark"] .rpx-op { background: rgba(0, 217, 122, .07); }
/* long-form 观点 on the green tint: --ink-2 read soft at first glance */
html[data-theme="dark"] .rpx-op p { color: #cbd5e1; }
html[data-theme="dark"] .rpx-view { background: var(--surface-2); color: #4ade80; }
html[data-theme="dark"] .rpx-view:hover { background: var(--green); color: #04110a; }
html[data-theme="dark"] .b-red { background: rgba(220, 38, 38, .18); color: #f87171; border-color: rgba(220, 38, 38, .35); }
html[data-theme="dark"] .b-black { background: rgba(148, 163, 184, .16); color: #cbd5e1; border-color: rgba(148, 163, 184, .3); }
html[data-theme="dark"] .b-push { background: rgba(245, 158, 11, .14); color: #fbbf24; border-color: rgba(245, 158, 11, .3); }
html[data-theme="dark"] .row-btn { border-color: rgba(0, 217, 122, .3); }
html[data-theme="dark"] .row-btn:hover { background: rgba(0, 217, 122, .1); }
html[data-theme="dark"] .row-btn.danger { color: #f87171; border-color: rgba(248, 113, 113, .35); }
html[data-theme="dark"] .row-btn.danger:hover { background: rgba(248, 113, 113, .1); }
html[data-theme="dark"] .row-btn.danger.armed { background: #dc2626; border-color: #dc2626; color: #fff7f5; }
html[data-theme="dark"] .chip { background: rgba(0, 217, 122, .13); color: #4ade80; }
html[data-theme="dark"] .b-open { background: rgba(148, 163, 184, .12); color: #cbd5e1; border-color: rgba(148, 163, 184, .25); }
html[data-theme="dark"] .rank-2 { --glow: 203, 213, 225; }





html[data-theme="dark"] .up-tag { background: rgba(245, 158, 11, .1); color: #fbbf24; border-color: rgba(245, 158, 11, .3); }
html[data-theme="dark"] .up-chip { color: var(--ink-2); }
/* the dark chip colour must not dim the solid red 连红 chip */
html[data-theme="dark"] .up-chip.hot { color: #fff; }
html[data-theme="dark"] .up-win button.on { background: var(--surface); color: #4ade80; box-shadow: none; }
html[data-theme="dark"] .up-area { fill: rgba(0, 217, 122, .14); }
html[data-theme="dark"] .up-dot { fill: var(--surface); }
html[data-theme="dark"] .up-lg,
html[data-theme="dark"] .up-call { color: #4ade80; }
html[data-theme="dark"] .up-lg { background: rgba(0, 217, 122, .11); }
html[data-theme="dark"] .up-locked { color: #fbbf24; }
html[data-theme="dark"] .pk-stats span,
html[data-theme="dark"] .stat-tile { background: var(--surface-2); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #0e1512; border-color: var(--line); color: var(--ink);
}
html[data-theme="dark"] .rpx-head:hover { background: rgba(0, 217, 122, .05); }
html[data-theme="dark"] .rp-mhead:hover { background: rgba(0, 217, 122, .04); }
.ac-theme { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
html[data-theme="dark"] .main { border-color: rgba(148, 163, 184, .14); box-shadow: 0 18px 45px -18px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .topbar-mark img { filter: invert(1); opacity: .55; }
html[data-theme="dark"] .modal-box { background: var(--surface); }
html[data-theme="dark"] .n-black { color: #cbd5e1; }
html[data-theme="dark"] .wk-rate { background: rgba(229, 72, 77, .16); color: #f87171; }
html[data-theme="dark"] .msg-ok { background: rgba(0, 217, 122, .13); color: #4ade80; border-color: rgba(0, 217, 122, .3); }
html[data-theme="dark"] .ai-tag { background: rgba(0, 217, 122, .13); color: #4ade80; border-color: rgba(0, 217, 122, .3); }
html[data-theme="dark"] .info-strip { background: rgba(0, 217, 122, .1); color: #4ade80; }
html[data-theme="dark"] .chip-crit.on { background: rgba(0, 217, 122, .13); color: #4ade80; }
html[data-theme="dark"] .fsel-item.on { background: rgba(0, 217, 122, .13); color: #4ade80; }
html[data-theme="dark"] .pk-warm { background: rgba(211, 58, 44, .16); color: #f87171; }
html[data-theme="dark"] .pk-cool { background: rgba(0, 217, 122, .13); color: #4ade80; }
/* dark polish: content floats translucently over the stadium backdrop */
html[data-theme="dark"] .main {
  background: linear-gradient(150deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 30%, rgba(10, 16, 13, .42) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  border-color: rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 18px 45px -18px rgba(0, 0, 0, .6);
}
/* solid, so cards never show through the sticky header while scrolling */
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .mob-head { background: #0f1613; border-bottom-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .card {
  background: linear-gradient(150deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 34%, rgba(16, 23, 19, .55) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 36px rgba(0, 0, 0, .35);
}


/* the embedded page carries its own glass panels; the frame must not paint
   a solid layer under them */

/* ── 新版排行榜: member cards with their latest prediction ── */

.rf-card { padding: 6px 0 0; }
.rf-range { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 18px 0; font-size: 13px; color: var(--ink-2); transition: opacity .15s; }
.rf-range[aria-busy="true"] { opacity: .55; pointer-events: none; }
/* 16px is the pill's own curve on one row and still holds when a long date label wraps it on a phone */
.rf-range .up-win { flex-wrap: wrap; border-radius: 16px; }
.rf-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rf-dates label { display: inline-flex; align-items: center; gap: 6px; }
.rf-dates input { font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; }
.rf-dates .btn { width: auto; margin: 0; padding: 7px 14px; font-size: 13px; }
.rf-range > i { font-style: normal; font-size: 12px; color: var(--ink-3); flex-basis: 100%; }
html[data-theme="dark"] .rf-dates input { color-scheme: dark; }
.rf-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin: 12px 18px 6px; }
.rf-tabs button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-3); border-radius: 9px; padding: 9px 6px; cursor: pointer; }
.rf-tabs button.on { background: var(--surface); color: var(--green-dark); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.rf-item { border-top: 1px solid var(--line); padding: 16px 20px 14px; }
.rf-item:first-of-type { border-top: 0; }
.rf-head { display: flex; align-items: center; gap: 14px; }
.rf-av { position: relative; flex: none; border: 0; background: none; padding: 0; cursor: pointer; }
.rf-av .h-avatar { width: 56px; height: 56px; border-radius: 50%; font-size: 16px; }
/* role tag under a profile picture: 专家 purple, 高手 blue */
.av-tagged { position: relative; display: inline-flex; flex: none; }
.av-tag {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center; height: 16px;
  font-style: normal; white-space: nowrap; font-size: 10px; font-weight: 800; line-height: 1;
  background: #2563eb; color: #fff; border-radius: 5px; padding: 0 6px;
  box-shadow: 0 0 0 2px var(--surface);
}
.av-tag.pro { background: #7c3aed; }
.av-tag.bot { background: var(--green-dark); }
/* push bell: a dot while push is off, like an unread badge; green while on */
/* off is a struck-through bell, not a dot: a dot reads as an unread alert */
.mh-bell.off { color: var(--ink-3); }
.mh-bell.off::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 2px; height: 22px; margin: -11px 0 0 -1px; border-radius: 1px;
  background: currentColor; box-shadow: 0 0 0 1.5px var(--surface-2);
  transform: rotate(-45deg);
}
.mh-bell.on { color: var(--green); }
.rf-id { flex: 1; min-width: 0; }
.rf-name { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.rf-name b { font-size: 16px; }
.rf-streak {
  display: inline-flex; align-items: center; border: 1px solid #dc2626; border-radius: 5px;
  font-size: 12px; font-weight: 800; color: #fff; background: #dc2626; overflow: hidden; padding-right: 6px;
}
/* solid red with white text: red-on-red read poorly (design feedback) */
.rf-streak i { font-style: normal; background: rgba(0, 0, 0, .2); color: #fff; padding: 0 6px; margin-right: 4px; }
.rf-rec { border: 1px solid #dc2626; border-radius: 5px; color: #dc2626; font-size: 12px; font-weight: 700; padding: 0 6px; }
.rf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.rf-tags span { background: #fde8e8; color: #c81e1e; font-size: 11.5px; font-weight: 700; border-radius: 5px; padding: 2px 8px; }
.rf-rate { flex: none; text-align: center; line-height: 1.1; }
.rf-rate b { font-size: 34px; font-weight: 900; color: #dc2626; font-variant-numeric: tabular-nums; }
.rf-rate sup { font-size: 14px; }
.rf-rate i { display: block; font-style: normal; font-size: 12px; color: #dc2626; margin-top: 4px; }
.rf-pick { display: block; width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 12px 0 0; }
.rf-title { display: block; font-size: 17px; font-weight: 700; line-height: 1.5; }
.rf-title em, .pl-title em { font-style: normal; color: #a855f7; margin-right: 4px; }
.rf-pick:hover .rf-title { color: var(--green-dark); }
.rf-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.rf-mk { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.rf-lock { color: #dc2626; }

/* 方案详情 */
.pl-box { max-width: 560px; width: min(560px, 94vw); height: auto; max-height: 90vh; overflow-y: auto; padding: 24px; }
.pl-head { display: flex; align-items: center; gap: 14px; padding-right: 44px; }
.pl-av { border: 0; background: none; padding: 0; cursor: pointer; flex: none; }
.pl-av .h-avatar { width: 60px; height: 60px; border-radius: 12px; font-size: 16px; }
.pl-best { display: inline-block; margin-top: 7px; background: #fde8e8; color: #c81e1e; font-size: 12px; font-weight: 700; border-radius: 5px; padding: 2px 8px; }
.pl-recent { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }
.pl-recent span { font-size: 13px; color: #dc2626; font-weight: 700; margin-right: 6px; }
.pl-recent small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.pl-recent i { font-style: normal; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: #dc2626; }
.pl-recent i.b { background: #94a3b8; }
.pl-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.pl-title { font-size: 17px; font-weight: 700; line-height: 1.55; }
.pl-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.pl-match { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px 0 10px; font-size: 19px; font-weight: 800; }
.pl-match span { display: inline-flex; align-items: center; gap: 8px; }
.pl-match img { width: 30px; height: 30px; object-fit: contain; }
.pl-match i { font-style: normal; font-size: 13px; color: var(--ink-3); }
.pl-mk > i, .pl-score i { font-style: normal; display: block; font-size: 12.5px; color: var(--ink-3); margin: 8px 0 6px; }
.pl-cells { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--surface-2); border-radius: 12px; overflow: hidden; }
.pl-cell { display: grid; justify-items: center; gap: 3px; padding: 10px 4px; }
.pl-cell i { font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.pl-cell b { font-size: 14px; }
.pl-cell.on { background: rgba(0, 158, 79, .14); }
.pl-cell.on b { color: var(--green-dark); }
.pl-cell.mid { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pl-blur { filter: blur(5px); user-select: none; }
.pl-score { display: flex; align-items: baseline; gap: 12px; }
.pl-score b { font-size: 18px; font-weight: 900; }
/* 1.1: the score is its own prediction, in its own card under the pick */
.pl-card-score { margin-top: 10px; padding-block: 12px; }
.pl-card-score .pl-score i { margin: 0; }
.pl-op { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; margin-top: 14px; }
.pl-op h4 { margin: 0 0 8px; text-align: center; font-size: 15px; }
.pl-op p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); white-space: pre-line; }
.pl-lockbox { display: grid; justify-items: center; gap: 4px; margin-top: 12px; background: var(--surface); border-radius: 12px; padding: 14px; text-align: center; }
.pl-lockbox svg { width: 22px; height: 22px; color: #d97706; }
.pl-lockbox b { color: #dc2626; font-size: 15px; }
.pl-lockbox i { font-style: normal; font-size: 12px; color: #d97706; }
.pl-cta { width: 100%; margin-top: 16px; border-radius: 999px; padding: 14px; font-size: 16px; }
@media (max-width: 560px) {
  .rf-item { padding: 14px; }
  .rf-rate b { font-size: 26px; }
  .rf-title { font-size: 15.5px; }
  .pl-box { padding: 18px; }
  /* 10 results: the label takes its own line so the row fits 360px */
  .pl-recent { gap: 4px; }
  .pl-recent span { flex-basis: 100%; }
  .pl-recent i { width: 22px; height: 22px; font-size: 11px; }
  .pl-match { font-size: 16px; gap: 10px; }
}
html[data-theme="dark"] .rf-tabs button.on { background: var(--surface); color: #4ade80; box-shadow: none; }
html[data-theme="dark"] .rf-tags span,
html[data-theme="dark"] .pl-best { background: rgba(220, 38, 38, .16); color: #f87171; }
html[data-theme="dark"] .rf-rec { border-color: #f87171; color: #f87171; }
html[data-theme="dark"] .rf-rate b, html[data-theme="dark"] .rf-rate i, html[data-theme="dark"] .rf-lock { color: #f87171; }
html[data-theme="dark"] .pl-cell.on { background: rgba(0, 217, 122, .14); }
html[data-theme="dark"] .pl-cell.on b { color: #4ade80; }
html[data-theme="dark"] .pl-lockbox b { color: #f87171; }

/* ranking strip: who is hot, one swipeable row above the prediction feed */
.rs-card { padding: 14px 0 12px; margin-bottom: 14px; }
.rs-head { display: flex; align-items: center; gap: 12px; padding: 0 18px 10px; }
.rs-head > i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.rs-strip {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px 14px 6px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.rs-strip::-webkit-scrollbar { display: none; }
@media (hover: hover) { .rs-strip { cursor: grab; } }
.rs-strip.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rs-strip.dragging .rs-item { pointer-events: none; }
.rs-strip img { -webkit-user-drag: none; user-select: none; }
.rs-item {
  flex: none; width: 92px; display: grid; justify-items: center; gap: 6px;
  border: 0; background: none; font: inherit; color: inherit; cursor: pointer;
  padding: 6px 2px; border-radius: 12px; scroll-snap-align: start;
}
.rs-item:hover { background: var(--surface-2); }
.rs-item .h-avatar { width: 58px; height: 58px; border-radius: 50%; font-size: 16px; }
.rs-item b { font-size: 13px; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-item .rf-streak { font-size: 11.5px; white-space: nowrap; }
.rs-none { align-self: center; padding: 0 8px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 560px) {
  /* wide enough for a 100% 命中 badge on one line */
  .rs-item { width: 86px; }
  .rs-item .h-avatar { width: 52px; height: 52px; }
  .rs-head > i { display: none; }
}

/* Login is always dark (per design): the light art's white right half is
   veiled into night green, and the card copy lifts off the dark ground. */
html[data-theme="dark"] .login-wrap {
  background:
    linear-gradient(90deg, rgba(5, 12, 8, 0) 28%, rgba(5, 12, 8, .88) 50%, #050c08 68%),
    radial-gradient(60% 70% at 78% 50%, rgba(0, 158, 79, .16), transparent 70%),
    url(img/login-bg.webp) center / cover no-repeat, #050c08;
}
html[data-theme="dark"] .lg-tabs { border-bottom-color: var(--line); }
/* the card reads as lit glass (per design): light falls from the top left,
   so the face shades teal-grey to near-black and the edge catches a highlight */
html[data-theme="dark"] .login-card {
  background:
    linear-gradient(155deg, rgba(40, 62, 60, .92) 0%, rgba(17, 29, 28, .94) 34%, rgba(12, 21, 20, .95) 62%, rgba(20, 32, 31, .94) 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .07),
    inset 1px 1px 0 rgba(255, 255, 255, .1),
    0 40px 80px -24px rgba(0, 0, 0, .85),
    0 0 60px -20px rgba(46, 230, 168, .12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
html[data-theme="dark"] .login-card input,
html[data-theme="dark"] #email,
html[data-theme="dark"] #password,
html[data-theme="dark"] #login-password { background-color: #0b1310; border-color: rgba(148, 163, 184, .24); color: #f1f5f9; }
html[data-theme="dark"] .login-card input::placeholder { color: #8b98a8; }
html[data-theme="dark"] .login-card input:-webkit-autofill {
  -webkit-text-fill-color: #f1f5f9;
  box-shadow: 0 0 0 40px #0b1310 inset;
  caret-color: #f1f5f9;
}
html[data-theme="dark"] .login-card .login-sub,
html[data-theme="dark"] .login-reg,
html[data-theme="dark"] .login-card .hint { color: #a3b1c2; }
@media (max-width: 1100px) {
  html[data-theme="dark"] .login-wrap {
    background:
      linear-gradient(180deg, rgba(5, 12, 8, .35) 0%, rgba(5, 12, 8, .55) 45%, rgba(5, 12, 8, .94) 100%),
      url(img/login-bg.webp) left center / cover no-repeat, #050c08;
  }
}

/* ── login motion ─────────────────────────────────────────────────────────
   The pitch is a looping video on desktop and an <image> inside #lg-tac on
   phones; either way it shares one box with the rings and
   passes login-scene.js lays over the painted players, so the two always line
   up. Entrance runs once: plate settles, headline rises, card slides in,
   rings light up. Inputs take focus from the first frame. */
html[data-theme="dark"] #view-login { background: #050c08; isolation: isolate; overflow: hidden; }
.lg-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: lg-scene-in 900ms var(--ease-enter) both; }
@keyframes lg-scene-in { from { opacity: 0; transform: scale(1.03); } }
.lg-stage, .lg-tac { position: absolute; inset: 0; width: 100%; height: 100%; }
.lg-vid { display: none; }
/* desktop: the plate is sized off the viewport width and pulled left so the
   pitch sits between the headline column and the card, as in the design;
   its edges dissolve into the page ground */
@media (min-width: 1101px) {
  /* per design the pitch sits right of the hero copy, its far end under the
     card; the stage's left edge dissolves into the page ground */
  .lg-stage {
    inset: auto; left: 12vw; top: 50%; width: 76vw; height: auto; aspect-ratio: 1918 / 1080; transform: translateY(-60%);
    /* edges dissolve into the page ground on every side, so no hard line
       shows where the stage ends on tall or wide screens */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 92%, transparent), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 92%, transparent), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent);
    mask-composite: intersect;
  }
  /* the looping stadium video sits under the ring layer; its poster is the
     video's own first frame, so nothing shifts when playback starts */
  .lg-vid { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
.lg-scene::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 8, .5) 0%, rgba(5, 12, 8, 0) 34%),
    linear-gradient(180deg, #050c08 0%, rgba(5, 12, 8, 0) 14%, rgba(5, 12, 8, 0) 80%, #050c08 100%),
    linear-gradient(270deg, #050c08 0%, rgba(5, 12, 8, .6) 24%, rgba(5, 12, 8, 0) 46%);
}

/* possession: one ring on the player with the ball. The ellipses carry the
   animation because the group's own transform places it on the pitch. */
.tn-ring { fill: none; stroke: #2ee6a8; stroke-width: 2.4; filter: drop-shadow(0 0 4px rgba(46, 230, 168, .9)); }
.tn-glow { fill: rgba(46, 230, 168, .22); }
.tn-ring, .tn-glow { transform-box: fill-box; transform-origin: center; animation: tn-pop 420ms var(--ease-enter) both; }
@keyframes tn-pop {
  0% { opacity: 0; transform: scale(.5); }
  60% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}
.tn { transition: opacity 350ms; }
.tn.out { opacity: 0; }
.tr { fill: none; stroke: #9dffd6; stroke-width: 2; stroke-linecap: round; stroke-opacity: .85; filter: drop-shadow(0 0 3px rgba(46, 230, 168, .9)); transition: opacity 600ms; }
.tr.fade { opacity: 0; }
.tr-ball { fill: #fff; filter: drop-shadow(0 0 5px #2ee6a8); }
.tr-goal { fill: none; stroke: #2ee6a8; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: tr-goal 900ms ease-out both; }
@keyframes tr-goal { from { opacity: 1; transform: scale(.5); } to { opacity: 0; transform: scale(2); } }


/* slimmer card on wide screens (per design) */
@media (min-width: 1101px) {
  #view-login .login-card { max-width: 410px; padding-left: 36px; padding-right: 36px; }
}

@keyframes lg-rise { from { opacity: 0; transform: translateY(20px); } }

/* hero carousel (per design): counter, headline + subtitle that cross-fade,
   the analyse -> predict -> verify steps, all switching
   together every 6s; the bar of the live slide fills over that time */
.login-hero { color: #fff; padding-left: 4vw; animation: lg-rise 600ms var(--ease-enter) 300ms both; }
.lc-count { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 22px; }
.lc-count b { color: #fff; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lc-bars { display: flex; gap: 8px; margin-left: 18px; }
.lc-bars button { width: 46px; height: 14px; padding: 5px 0; border: 0; background: none; cursor: pointer; }
.lc-bars i { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; position: relative; }
.lc-bars i::after { content: ''; position: absolute; inset: 0; background: #22e39b; transform: scaleX(0); transform-origin: left; }
.lc-bars .done i::after { transform: scaleX(1); }
.lc-bars .on i::after { animation: lc-fill 6s linear both; }
@keyframes lc-fill { to { transform: scaleX(1); } }
.lc-slides { display: grid; }
/* the outgoing slide disappears at once and the new one plays a keyframe
   entrance: CSS transitions stalled under the video's load and left two
   headlines overlapping mid-fade */
.lc-slide { grid-area: 1 / 1; visibility: hidden; pointer-events: none; }
.lc-slide.on { visibility: visible; pointer-events: auto; animation: lc-in 450ms var(--ease-enter) both; }
@keyframes lc-in { from { opacity: 0; transform: translateY(10px); } }
.lc-slide :is(h1, h2) { font-size: clamp(44px, 4.4vw, 84px); font-weight: 900; line-height: 1.12; letter-spacing: 2px; white-space: nowrap; }
.lc-slide :is(h1, h2) em { font-style: normal; color: #22e39b; text-shadow: 0 0 28px rgba(34, 227, 155, .35); }
.lc-slide p { margin: 14px 0 0; font-size: clamp(15px, 1.25vw, 22px); letter-spacing: 2px; color: rgba(255, 255, 255, .86); }
.lc-steps { display: flex; align-items: flex-start; margin: 46px 0 34px; }
.lc-step { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 84px; color: rgba(255, 255, 255, .7); }
.lc-step svg { box-sizing: border-box; width: 52px; height: 52px; padding: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); }
.lc-step b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.lc-step.on { color: #22e39b; }
.lc-step.on svg { border-color: transparent; }
/* steps already passed keep a solid green ring and icon */
.lc-step.done svg { border-color: #22e39b; color: #22e39b; }
/* the live step's ring carries a bright comet arc that circles like a
   loader; a masked conic gradient so only the ring band shows */
.lc-step { position: relative; --d: 52px; }
.lc-step.on::before {
  content: ''; position: absolute; top: -3px; left: 50%;
  width: calc(var(--d) + 6px); height: calc(var(--d) + 6px); margin-left: calc(var(--d) / -2 - 3px);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 227, 155, 0) 0deg, rgba(34, 227, 155, 0) 200deg, rgba(34, 227, 155, .5) 290deg, #22e39b 340deg, #eafff4 358deg, rgba(34, 227, 155, 0) 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  filter: drop-shadow(0 0 6px rgba(34, 227, 155, .9));
  animation: lc-spin 1.6s linear infinite;
  pointer-events: none;
}
@keyframes lc-spin { to { transform: rotate(360deg); } }
.lc-link { position: relative; flex: 0 0 64px; height: 2px; margin-top: 25px; background: rgba(255, 255, 255, .22); overflow: visible; }
.lc-link::before { content: ''; position: absolute; inset: 0; background: #22e39b; transform: scaleX(0); transform-origin: left; }
.lc-link.lit::before { transform: scaleX(1); animation: lc-grow 500ms var(--ease-standard) both; }
@keyframes lc-grow { from { transform: scaleX(0); } }
.lc-link::after { content: ''; position: absolute; left: 50%; top: -3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.lc-link.lit::after { background: #22e39b; box-shadow: 0 0 8px #22e39b; }
/* desktop: the copy sits in the dark bottom-left corner, clear of the
   pitch, with the card still centred on the right */
@media (min-width: 1101px) {
  .login-hero { align-self: end; margin-bottom: clamp(8px, 4vh, 48px); }
  .lc-steps { margin: 30px 0 0; }
}
@media (max-height: 800px) and (min-width: 1101px) {
  .lc-count { margin-bottom: 14px; }
  .lc-slide :is(h1, h2) { font-size: clamp(40px, 4vw, 60px); }
  .lc-steps { margin: 28px 0 22px; }
}
@media (max-height: 680px) and (min-width: 1101px) {
  .lc-step svg { width: 44px; height: 44px; padding: 11px; }
  .lc-step { --d: 44px; }
  .lc-link { margin-top: 21px; flex-basis: 48px; }
  .lc-steps { margin: 20px 0 16px; }
}
/* narrow and phone: the headline still rotates, the steps step aside */
@media (max-width: 1100px) {
  .login-hero { padding: 0; }
  .lc-count { justify-content: center; margin-bottom: 10px; }
  .lc-slide :is(h1, h2) { font-size: 30px; letter-spacing: 1px; }
  .lc-slide p { font-size: 13.5px; letter-spacing: 1px; margin-top: 8px; }
  .lc-steps { display: none; }
}
@media (max-width: 560px) {
  .lc-count { margin: 4px 0 6px; font-size: 12px; }
  .lc-count b { font-size: 14px; }
  .lc-bars { margin-left: 10px; gap: 6px; }
  .lc-bars button { width: 26px; }
  .lc-slide :is(h1, h2) { font-size: 26px; }
  .lc-slide p { font-size: 12.5px; letter-spacing: .5px; margin-top: 4px; }
}
/* short phones: only the rotating headline stays above the card */
@media (max-width: 560px) and (max-height: 860px) {
  .lc-count, .lc-slide p { display: none; }
}
@media (max-width: 560px) and (max-height: 700px) {
  .login-card .login-sub { display: none; }
  /* the card alone fills these screens; the hero would push it off */
  .login-hero { display: none; }
  .login-card .brand { font-size: 17px; }
  .lg-tabs { margin: -6px 0 10px; }
  .login-card .btn, .login-card input { height: 40px; }
  .lg-terms { margin-top: 6px; font-size: 11px; }
}

/* tags pinned over the pitch: a glass chip on a thin stem down to a player */
.lg-tags { position: absolute; inset: 0; }
.pt { position: absolute; width: 0; height: 0; animation: pt-in 450ms var(--ease-enter) both; transition: opacity 350ms; }
.pt.out { opacity: 0; }
@keyframes pt-in { from { opacity: 0; transform: translateY(8px); } }
.pt::before { content: ''; position: absolute; left: -1px; bottom: 0; width: 2px; height: 38px; background: linear-gradient(0deg, rgba(34, 227, 155, .9), rgba(34, 227, 155, .15)); }
.pt::after { content: ''; position: absolute; box-sizing: border-box; left: calc(var(--rw, 32px) / -2); top: calc(var(--rh, 12px) / -2); width: var(--rw, 32px); height: var(--rh, 12px); border-radius: 50%; border: var(--rs, 2px) solid #22e39b; box-shadow: 0 0 10px rgba(34, 227, 155, .7); }
.pt-chip {
  position: absolute; left: -14px; bottom: 38px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(6, 18, 15, .86); border: 1px solid rgba(34, 227, 155, .45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 14px rgba(34, 227, 155, .12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 14px; font-weight: 700;
}
.pt-l .pt-chip { left: auto; right: -14px; }
/* laptops: smaller chips so three fit between the copy and the card */
@media (min-width: 1101px) and (max-width: 1599px), (min-width: 1101px) and (max-height: 800px) {
  .pt::before { height: 30px; }
  .pt-chip { bottom: 30px; padding: 6px 11px; gap: 6px; font-size: 12.5px; }
  .pt-chip svg { width: 15px; height: 15px; }
  .pt-chip strong, .pt-chip span em { font-size: 15px; }
  .pt-chip i { font-size: 14px; }
}
/* phones: the tags line up as a column under the headline, over the pitch,
   outside the layout so they never push the card down */
.lc-mtags { display: none; }
@media (max-width: 1100px) {
  .lg-tags { display: none; }
  .login-hero { position: relative; }
  .lc-mtags {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  }
  .lc-mtags .pt-chip { position: static; padding: 5px 10px; gap: 6px; font-size: 12px; animation: pt-in 450ms var(--ease-enter) both; }
  .lc-mtags .pt-chip svg { width: 14px; height: 14px; }
  .lc-mtags .pt-chip strong, .lc-mtags .pt-chip span em { font-size: 14px; }
  .lc-mtags .pt-chip i { font-size: 13px; }
  .lc-mtags .pt-chip small { font-size: 10.5px; }
}

.pt-chip svg { width: 18px; height: 18px; color: #22e39b; flex: none; }
.pt-chip strong { font-size: 18px; font-weight: 800; color: #22e39b; margin: 0 2px; }
.pt-chip em { font-style: normal; color: #22e39b; }
.pt-chip span { display: inline-flex; align-items: baseline; gap: 6px; }
.pt-chip small { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.pt-chip span em { font-size: 19px; font-weight: 800; }
.pt-chip i { font-style: normal; font-size: 16px; font-weight: 800; }
.pt-chip .pt-red { color: #ff5a4e; }
.pt-chip .pt-mute { color: #c3ccd3; }
.pt-chip > span.pt-red, .pt-chip > span.pt-mute { padding: 1px 8px; border-radius: 999px; background: rgba(255, 90, 78, .16); font-size: 12px; }
.pt-chip > span.pt-mute { background: rgba(195, 204, 211, .14); }
#view-login .login-card { animation: lg-card 650ms var(--ease-enter) 150ms both; }
@keyframes lg-card { from { opacity: 0; transform: translateX(20px) scale(.985); } }
@media (max-width: 1100px) {
  #view-login .login-card { animation-name: lg-card-up; }
  @keyframes lg-card-up { from { opacity: 0; transform: translateY(14px) scale(.985); } }
}

/* form feedback: emerald focus glow, brighter label, button lift, arrow nudge */
#view-login .login-card input { transition: border-color var(--motion-fast), box-shadow var(--motion-fast); }
html[data-theme="dark"] #view-login .login-card input:focus-visible {
  border-color: #2ee6a8;
  box-shadow: 0 0 0 3px rgba(46, 230, 168, .14), 0 0 18px -4px rgba(46, 230, 168, .45);
}
#view-login .field > span:first-child { transition: color var(--motion-fast); }
html[data-theme="dark"] #view-login .field:focus-within > span:first-child { color: #fff; }
#view-login .login-card .btn-primary { transition: transform var(--motion-fast) var(--ease-standard), filter var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast); }
#view-login .login-card .btn-primary:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 28px -12px rgba(0, 217, 122, .55); }
#view-login .login-card .btn-primary:not(:disabled):active { transform: scale(.985); }
#view-login .login-card .btn-primary .arrow { display: inline-block; transition: transform var(--motion-fast) var(--ease-standard); }
#view-login .login-card .btn-primary:not(:disabled):hover .arrow { transform: translateX(4px); }
#view-login .pw-eye svg { transition: transform 110ms, opacity 110ms; }
#view-login .pw-eye:active svg { transform: scale(.82); opacity: .7; }
/* waiting on the API: the label stays, a band of light sweeps across, and
   the button keeps full strength instead of the faded disabled look */
.is-busy { overflow: hidden; cursor: progress; }
/* the sweep needs a positioned box; 获取验证码 is already absolutely placed
   inside its field, and relative would pull it out of there */
.is-busy:not(.wa-get) { position: relative; }
.is-busy:disabled { opacity: 1; cursor: progress; }
.wa-get.is-busy:disabled { color: var(--ink-2); }
.is-busy::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .38) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: btn-shimmer 1.1s ease-in-out infinite;
}
/* a white sweep vanishes on a light ghost button; tint it green there */
.btn-ghost.is-busy::after, .wa-get.is-busy::after {
  background: linear-gradient(100deg, transparent 25%, rgba(0, 217, 122, .32) 50%, transparent 75%);
}
@keyframes btn-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .is-busy::after { animation: none; transform: none; background: rgba(255, 255, 255, .14); }
}

/* 登录/注册: one underline slides between tabs; the new fields rise 6px */
#view-login .lg-tabs { position: relative; }
#view-login .lg-tab.on::after { display: none; }
#view-login .lg-tabs::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 50%;
  height: 3px; border-radius: 2px; background: var(--green);
  transition: transform var(--motion-normal) var(--ease-standard);
}
#view-login .lg-tabs:has(#tab-signup.on)::after { transform: translateX(100%); }
#view-login #panel-phone-login:not([hidden]),
#view-login #panel-email-login:not([hidden]),
#view-login #panel-wa:not([hidden]) { animation: lg-swap var(--motion-normal) var(--ease-standard) both; }
@keyframes lg-swap { from { opacity: 0; transform: translateY(6px); } }

/* phones: portrait plate, pitch in the gap between headline and card */
@media (max-width: 767px) {
  /* dropped 40px so the pitch clears the tagline */
  .lg-scene { top: 40px; }
  .lg-scene::after { background: linear-gradient(180deg, #050c08 0%, rgba(5, 12, 8, 0) 10%); }
  html[data-theme="dark"] #view-login .login-hero { margin-bottom: clamp(0px, calc(100svh - 715px), 150px); }
}

/* reward-ad unlock: sponsor slot + countdown */
.pl-cta svg { width: 17px; height: 17px; margin-right: 6px; vertical-align: -3px; }
.ad-box { max-width: 420px; width: min(420px, 94vw); height: auto; max-height: 90vh; overflow-y: auto; padding: 24px; text-align: center; }
.ad-box h3 { font-size: 20px; font-weight: 800; }
.ad-match { margin: 4px 0 14px; font-size: 13.5px; color: var(--ink-2); }
.ad-slot { position: relative; display: grid; place-items: center; gap: 4px; padding: 26px 16px; margin-bottom: 16px; border-radius: 14px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #0b3d2a, #12704a 55%, #0a2a1d); }
.ad-slot b { font-size: 34px; font-weight: 900; letter-spacing: 2px; }
.ad-slot i { font-style: normal; font-size: 12.5px; opacity: .85; }
.ad-tag { position: absolute; top: 8px; left: 10px; font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.ad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; text-align: left; }
.ad-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.ad-list svg { flex: none; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: rgba(0, 158, 79, .14); color: var(--green); }
.ad-bar { height: 4px; margin: 18px 0 12px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ad-bar i { display: block; height: 100%; width: 0; background: var(--green); }
.ad-note { margin: 10px 0 0; font-size: 11.5px; color: var(--ink-3); }
.ad-id { margin: 4px 0 0; font-size: 10.5px; color: var(--ink-3); opacity: .7; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
html[data-theme="dark"] .ad-list svg { background: rgba(0, 217, 122, .14); color: #4ade80; }
html[data-theme="dark"] .mr-opinion { background: rgba(8, 20, 14, .92); border-color: #22c55e; }
html[data-theme="dark"] .mr-tg { color: #4ade80; border-color: #22c55e; }
html[data-theme="dark"] .mr-opinion p { color: #86efac; }

/* the centre button's ring matches the dark bar instead of glowing white */
@media (max-width: 767px) {
  html[data-theme="dark"] .bottom-nav .nav-center svg { box-shadow: 0 0 0 4px var(--surface), 0 8px 18px -6px rgba(0, 217, 122, .45); }
}

/* 专家 accounts: green 专家 marks where members get 高手 */
.up-role.pro { background: #e8f6ee; color: #0a7c46; }
.up-bio { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
html[data-theme="dark"] .up-role.pro { background: rgba(0, 217, 122, .13); color: #4ade80; }
.pl-free { width: 100%; margin-top: 10px; border-radius: 999px; padding: 12px; font-size: 14.5px; }
.pl-free:disabled { opacity: .55; cursor: default; }

/* 4-inch phones: the card needs the footer's room */
@media (max-width: 560px) and (max-height: 600px) {
  #view-login .lg-foot { display: none; }
  #view-login.login-wrap { padding-bottom: 8px; }
}

/* ── in-app motion and feedback ──────────────────────────────────────────
   One timing family (the login's tokens) across the product. Entrances run
   once with fill-mode backwards, so nothing holds a transform afterwards and
   press feedback still works on the same elements. */

/* modals: backdrop fades, box lifts and scales; leaving reverses */
.modal-ov { animation: ov-in 200ms var(--ease-standard) backwards; }
.modal-ov .modal-box { animation: box-in 260ms var(--ease-enter) backwards; }
.modal-ov.leaving { animation: ov-out 180ms var(--ease-standard) forwards; pointer-events: none; }
.modal-ov.leaving .modal-box { animation: box-out 180ms var(--ease-standard) forwards; }
@keyframes ov-in { from { opacity: 0; } }
@keyframes ov-out { to { opacity: 0; } }
@keyframes box-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes box-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* page change: content rises in */
#page-body.page-in { animation: page-in 320ms var(--ease-enter) backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

/* list rows step in, first eight staggered, the rest together */
.rf-item, .hrow, .rs-item, .pk-card, .tile { animation: item-in 360ms var(--ease-enter) backwards; }
:is(.rf-item, .hrow, .rs-item, .pk-card, .tile):nth-child(2) { animation-delay: 30ms; }
:is(.rf-item, .hrow, .rs-item, .pk-card, .tile):nth-child(3) { animation-delay: 60ms; }
:is(.rf-item, .hrow, .rs-item, .pk-card, .tile):nth-child(4) { animation-delay: 90ms; }
:is(.rf-item, .hrow, .rs-item, .pk-card, .tile):nth-child(5) { animation-delay: 120ms; }
:is(.rf-item, .hrow, .rs-item, .pk-card, .tile):nth-child(6) { animation-delay: 150ms; }
:is(.rf-item, .hrow, .rs-item, .pk-card, .tile):nth-child(7) { animation-delay: 180ms; }
:is(.rf-item, .hrow, .rs-item, .pk-card, .tile):nth-child(n+8) { animation-delay: 210ms; }
@keyframes item-in { from { opacity: 0; transform: translateY(6px); } }

/* press and hover feedback on everything clickable */
.btn, .row-btn, .nav-item, .modal-x, .lg-tab, .fsel-btn, .rs-item, .pk-card, .pl-av {
  transition: transform 120ms var(--ease-standard), background-color var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.btn:not(:disabled):active, .row-btn:not(:disabled):active, .modal-x:active, .lg-tab:active, .fsel-btn:active, .pl-av:active { transform: scale(.97); }
.nav-item:active, .rs-item:active, .pk-card:active { transform: scale(.98); }
.btn:not(:disabled) { cursor: pointer; }
.btn:disabled { cursor: progress; }

/* keyboard focus: one visible ring everywhere (inputs keep their own) */
:where(button, a, select, summary, [role="tab"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* the active nav icon pops when it becomes current */
.nav-item[aria-current="page"] svg { animation: nav-pop 320ms var(--ease-enter); }
@keyframes nav-pop { 40% { transform: scale(1.18); } }

/* skeleton loading: one shimmer block (.sk) arranged per page */
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 0%, #e9eef3 40%, var(--surface-2) 80%) 0 0 / 300% 100%; animation: sk-shine 1.3s linear infinite; }
html[data-theme="dark"] .sk { background-image: linear-gradient(90deg, rgba(148, 163, 184, .1) 0%, rgba(148, 163, 184, .2) 40%, rgba(148, 163, 184, .1) 80%); }
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.sk-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
#tab-body > .sk-page { margin-top: 16px; }
.sk-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.sk-av { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.sk-av.lg { width: 56px; height: 56px; }
.sk-av.sm { width: 26px; height: 26px; }
.sk-t1 { height: 14px; width: 46%; }
.sk-t2 { height: 11px; width: 70%; }
.sk-t3 { height: 10px; width: 64px; }
.sk-pill { height: 18px; width: 52px; border-radius: 9px; }
.sk-big { height: 30px; width: 70px; border-radius: 8px; }
.sk-feed { padding: 0; }
.sk-fi { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-top: 1px solid var(--line); }
.sk-fi:first-child { border-top: 0; }
.sk-fi span { flex: 1; display: grid; gap: 9px; }
.sk-fi b { display: grid; justify-items: end; gap: 8px; }
.sk-strip .sk-tabs { width: 150px; height: 26px; border-radius: 13px; margin-bottom: 18px; }
.sk-strip > div { display: flex; gap: 22px; overflow: hidden; }
.sk-strip span { display: grid; justify-items: center; gap: 8px; flex: none; }
.sk-seg { padding: 8px; }
.sk-seg .sk { height: 38px; border-radius: 10px; }
.sk-date { display: flex; justify-content: center; }
.sk-date .sk { width: 150px; height: 34px; border-radius: 10px; }
.sk-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-chips .sk { width: 62px; height: 32px; border-radius: 16px; }
.sk-match { display: flex; align-items: center; gap: 8px; padding: 18px 20px; }
.sk-match .sk-av.sm + .sk-av.sm { margin-left: -14px; }
.sk-match .sk-t1 { width: 30%; margin-left: 6px; }
.sk-match b { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sk-stack { width: 64px; height: 22px; border-radius: 11px; }
.sk-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sk-tiles .sk-card { display: grid; gap: 12px; }
.sk-num { width: 70px; height: 30px; border-radius: 8px; }
.sk-form-row { display: grid; gap: 16px; }
.sk-form-row .sk-t1 { width: 120px; }
.sk-form-row div { display: flex; gap: 14px; flex-wrap: wrap; }
.sk-dot { width: 38px; height: 38px; border-radius: 50%; }
.sk-chart { display: flex; align-items: flex-end; justify-content: space-around; height: 220px; }
.sk-chart .sk { width: 56px; border-radius: 6px 6px 0 0; }
/* AI 分析: same column, gaps and card sizes as tipster.css and chat.css */
.sk-page > .sk-tp, .sk-page > .an-wrap { width: 100%; }
.tp-stack > .sk-page { grid-template-rows: minmax(0, 1fr); }
.sk-tp { max-width: 1120px; margin: 0 auto; padding: 22px var(--tp-gutter, 22px); }
.sk-tp .sk-card { border-radius: 16px; }
.sk-tp-hero { display: grid; gap: 10px; margin-bottom: 55px; }
.sk-tp-h1 { width: 230px; height: 30px; margin-top: 4px; border-radius: 8px; }
.sk-tp-sub { width: 250px; height: 13px; }
.sk-tp-h3 { width: 150px; height: 24px; margin: 3px 0; border-radius: 7px; }
/* collapses with the filters' margin-top */
.sk-tp-select .sk-tp-h3 { margin-bottom: 17px; }
.sk-tp-select { padding: 22px 24px; margin-bottom: 16px; }
.sk-tp-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.sk-tp-filters .sk { height: 43px; border-radius: 10px; }
.sk-tp-strip { display: flex; gap: 8px; height: 94px; margin-top: 14px; }
.sk-tp-strip > .sk { flex: none; width: 32px; height: auto; border-radius: 10px; }
.sk-tp-strip > div { display: flex; flex: 1; gap: 10px; min-width: 0; overflow: hidden; }
.sk-tp-strip .sk-card { flex: none; display: grid; align-content: center; gap: 13px; width: 190px; padding: 10px 12px; border-radius: 12px; }
.sk-tp-next { display: flex; gap: 10px; }
.sk-tp-next .sk { flex: 1; height: 54px; border-radius: 14px; }
.sk-antab { width: 130px; height: 44px; border-radius: var(--r-sm); }
/* what sits above and below the real panel: only used until the status call
   answers, then the mounted panel's own height sets the cell */
.sk-tc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: calc(100dvh - 133px); min-height: 240px; padding: 24px; overflow: hidden; border-radius: 16px; }
.tp-stack .sk-tc { height: auto; }
.sk-tc-brain { flex: none; width: 360px; height: 240px; border-radius: 16px; }
.sk-tc-h2 { flex: none; width: min(340px, 80%); height: 36px; border-radius: 9px; }
.sk-tc-sub { flex: none; width: min(300px, 70%); height: 15px; }
.sk-tc-chips { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 620px; margin-top: 4px; }
.sk-tc-chips .sk { width: 170px; max-width: 100%; height: 36px; border-radius: 12px; }
/* build_chips lists the match question second, the longest of the four */
.sk-tc-chips .sk:nth-child(2) { width: 280px; }
.sk-tc-input { flex: none; width: 100%; max-width: 620px; height: 58px; margin: 8px 0 11px; border-radius: 29px; }
@media (max-width: 760px) {
  .sk-antab { flex: 1; }
  .sk-tc { height: calc(100dvh - 213px); padding: 24px 12px; }
  .sk-tc-chips { width: calc(100% - 8px); }
  .sk-tc-chips .sk { height: 40px; }
  .sk-tc-input { margin: 8px 0 5px; }
}
/* short screens: the same steps as chat.css, where the brain gives way first */
@media (max-height: 900px) {
  .sk-tc-brain { width: 300px; height: 200px; }
}
@media (max-width: 760px) {
  .sk-tc-brain { width: 240px; height: 160px; }
}
@media (max-height: 860px) {
  .sk-tc-h2 { height: 30px; }
}
@media (max-height: 760px) {
  .sk-antab { height: 40px; }
  .sk-tc { gap: 4px; padding-block: 12px; }
  .sk-tc-brain { width: 210px; height: 140px; }
  .sk-tc-h2 { height: 26px; }
  .sk-tc-chips { margin-top: 14px; }
  .sk-tc-input { margin: 8px 0 17px; }
}
@media (max-height: 760px) and (max-width: 760px) {
  /* the real disclaimer wraps to two lines under the input here */
  .sk-tc { padding-inline: 16px; }
  .sk-tc-brain { width: 132px; height: 88px; }
  .sk-tc-chips { width: 100%; }
  .sk-tc-input { margin-bottom: 33px; }
}
/* 652px is where the real robot goes, see chat.css */
@media (max-height: 652px), (max-height: 700px) and (max-width: 760px) {
  .sk-tc-brain { display: none; }
}
@media (max-height: 620px) and (max-width: 760px) {
  .sk-tc-sub { display: none; }
  .sk-tc-chips .sk { height: 38px; }
}
@media (max-width: 720px) {
  .sk-tp-filters { grid-template-columns: 1fr; }
  /* the real subtitle wraps under the heading */
  .sk-tp-select .sk-tp-h3 { margin-bottom: 38px; }
  .sk-tp-next .sk { height: 48px; }
}
.sk-formcard { display: grid; gap: 10px; max-width: 640px; }
.sk-input { height: 46px; border-radius: 12px; margin-bottom: 6px; }
.sk-btn { height: 50px; border-radius: 12px; margin-top: 8px; }
.sk-addcard { display: grid; gap: 18px; }
.sk-addcard > span, .sk-addgrid span { display: grid; gap: 8px; }
.sk-addhead { display: flex; align-items: center; gap: 12px; }
.sk-addhead span { display: grid; gap: 8px; }
.sk-addhead .sk-t1 { width: 150px; }
.sk-addhead .sk-t2 { width: 230px; }
.sk-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.sk-addgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px 16px; }
.sk-addgrid .sk-input { height: 52px; margin-bottom: 0; }
.sk-score { display: flex; gap: 10px; }
.sk-score .sk { width: 96px; height: 52px; border-radius: 12px; }
.sk-area { height: 150px; border-radius: 12px; }
.sk-note { height: 42px; border-radius: 12px; }
.sk-addcard .sk-btn { height: 54px; border-radius: 14px; margin-top: 0; }
@media (max-width: 900px) { .sk-addgrid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .sk-tiles { grid-template-columns: repeat(2, 1fr); }
  .sk-match .sk-stack, .sk-fi b .sk-t3 { display: none; }
  .sk-chart .sk { width: 32px; }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 18px 11px 14px; border-radius: 12px;
  background: #0f1d17; color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform 260ms var(--ease-enter), opacity 200ms var(--ease-standard);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 20px; height: 20px; flex: none; padding: 3px; box-sizing: border-box; border-radius: 50%; background: #22c55e; color: #052e16; }
.toast-error svg { background: #ff5a4e; color: #fff; }
.toast-info svg { background: #64748b; color: #fff; }
html[data-theme="dark"] .toast { background: #1b2a24; border: 1px solid rgba(46, 230, 168, .18); }
@media (max-width: 767px) { .toast { bottom: 84px; } }

/* plan just unlocked: the hidden figures come into focus */
.pl-revealed .pl-card { animation: pl-reveal 700ms var(--ease-enter) 120ms backwards; }
.pl-revealed .pl-cell.on { animation: pl-cell-on 900ms var(--ease-enter) 350ms backwards; }
@keyframes pl-reveal { from { filter: blur(6px); opacity: .5; } }
@keyframes pl-cell-on { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }

/* 收益中心: the wallet leads; invites and creator units support it */
.en-wallet { padding: 24px 26px; margin-bottom: 14px; }
.en-w-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.en-w-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.en-w-value { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 4px 0 2px; white-space: nowrap; }
.ac-card .en-w-btn, .en-w-btn { width: auto; padding: 12px 34px; margin-top: 4px; }
.en-w-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.en-w-stats dt, .en-src dt { font-size: 12.5px; color: var(--ink-3); }
.en-w-stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; white-space: nowrap; }
.en-w-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.en-w-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
/* progress to the minimum withdrawal */
.en-goal { margin-top: 16px; }
.en-goal-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.en-goal-track span {
  display: block; height: 100%; border-radius: 999px; background: var(--green);
  transform-origin: left; animation: lc-grow 700ms var(--ease-enter) 200ms both;
}
.en-goal-txt { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

/* monthly income: reuses the .wk-* stacked columns. Series colours were
   checked for colour-blind separation against each theme's card surface.
   Dark mode's --green (#00d97a) is too light for a chart fill on the dark
   card, so the chart steps down to #00a85f there. */
.en-mo { --en-aff: var(--green); --en-cre: #6D5BD0; }
html[data-theme="dark"] .en-mo { --en-aff: #00a85f; --en-cre: #8A7BEA; }
/* columns rise left to right, like the list rows' stagger; capped so a
   24-month chart is not still rising a second later */
.en-mo .wk-stack {
  gap: 2px; transform-origin: bottom;
  animation: up-rise 600ms var(--ease-enter) backwards;
  animation-delay: calc(250ms + min(var(--i, 0) * 40ms, 400ms));
}
/* this month is still running: lighter, and labelled 本月. On the dark card
   plain opacity reads as muddier, so dark mode lifts brightness instead. */
.en-mo-now .wk-seg { opacity: .6; }
html[data-theme="dark"] .en-mo-now .wk-seg { opacity: 1; filter: saturate(.55) brightness(1.3); }
.en-mo-note { margin: 8px 0 0; }
.en-mo-range { width: auto; padding: 6px 12px; font-weight: 600; border-radius: 10px; }
.en-mo-aff { background: var(--en-aff); }
.en-mo-cre { background: var(--en-cre); }
/* same 20px + 8px band as .wk-rate, so the axis numbers stay on the gridlines */
.en-mo-total { height: 20px; margin-bottom: 8px; display: flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 560px) { .en-mo-total { font-size: 10px; } }
.en-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.en-two .card { margin: 0; }
.en-card { margin-bottom: 14px; }
.en-card h2 { margin-bottom: 10px; }
.en-src { margin: 0; display: grid; gap: 10px; }
.en-src div { display: flex; justify-content: space-between; align-items: baseline; }
.en-src dd { margin: 0; font-weight: 700; }
.en-small { width: auto; padding: 8px 16px; margin-top: 10px; font-size: 13px; }
.en-gap { margin-top: 10px; }
.en-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.en-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.en-share .btn { width: auto; padding: 9px 16px; font-size: 13.5px; }
.en-code { margin-right: auto; font-size: 13px; color: var(--ink-3); }
.en-code b { color: var(--ink); font-size: 15px; letter-spacing: .1em; margin-left: 4px; }
.en-apps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.en-app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--ink-2); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; transition: border-color var(--motion-fast) var(--ease-standard); }
.en-app:hover { border-color: var(--green); }
.en-app svg { width: 26px; height: 26px; }
.en-qr { width: 220px; margin: 16px auto 10px; padding: 10px; background: #fff; border-radius: 12px; }
.en-qr svg { display: block; width: 100%; height: auto; }
.en-qr-tip { text-align: center; margin-bottom: 6px; }
.en-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0 6px; border: 1px solid var(--line); border-radius: 12px; }
.en-funnel div { padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.en-funnel div + div { border-left: 1px solid var(--line); }
.en-funnel b { font-size: 18px; white-space: nowrap; }
.en-funnel span { font-size: 12px; color: var(--ink-3); }
.en-list { list-style: none; margin: 0; padding: 0; }
.en-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.en-funnel + .en-list li:first-child { border-top: none; }
.en-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.en-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.en-side { display: flex; align-items: center; gap: 10px; flex: none; }
.en-ok { background: #E8F6EE; color: #0A5B33; border: 1px solid #BFE5CF; }
.en-more { display: block; width: 100%; margin-top: 2px; padding: 10px 0 2px; border: none; border-top: 1px solid var(--line); background: none; color: var(--green); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.en-rules { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.en-rules > span { display: flex; flex-direction: column; gap: 2px; }
.en-rules svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.en-rules:hover svg { color: var(--green); }
.en-sheet { max-width: 560px; width: min(560px, 94vw); height: auto; max-height: 86vh; overflow-y: auto; padding: 26px 26px 18px; }
.en-sheet h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.en-terms { margin: 10px 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.en-entry { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.en-entry h2 { margin-bottom: 2px; }
.en-entry .btn { flex: none; white-space: nowrap; }
@media (max-width: 720px) {
  .en-two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .en-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .en-wallet { padding: 20px; }
  .en-w-value { font-size: 32px; }
  .en-w-stats dd { font-size: 15px; }
  .en-side .h-sub { display: none; }
  .en-code { flex-basis: 100%; }
  .en-share .btn { flex: 1; padding: 9px 6px; }
  .en-funnel div { padding: 8px; }
  .en-funnel b { font-size: 15px; }
}
html[data-theme="dark"] .en-ok { background: rgba(0, 158, 79, .18); color: #4ade80; border-color: rgba(0, 158, 79, .35); }

/* 浏览 N and the share buttons on a single pick */
.views { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; line-height: 1; vertical-align: -0.12em; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.views svg { width: 1em; height: 1em; flex: none; }
/* on the ranking card it follows plain 13px text: same size, centred, so "1小时前发布 浏览 1" reads as one line */
.rf-meta > span:first-child { display: inline-flex; align-items: center; }
.rf-meta .views { font-size: inherit; }
.rf-meta .views, .h-title .views { margin-left: 8px; }
.hrow.call .h-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.pick-share { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; border-radius: 999px; }
.pick-share svg { width: 16px; height: 16px; flex: none; }
.en-sheet .pick-share { margin-top: 14px; }
.row-btn[data-share] { display: inline-flex; align-items: center; gap: 5px; }
.row-btn[data-share] svg { width: 14px; height: 14px; flex: none; }

/* ── 每日签到 sheet ─────────────────────────────────────────────────────
   Ported from the approved mockup (scratch/checkin/v4). Always dark: the
   ticket and the stadium behind it are one look, whatever the site theme.
   --pw (0..1) is the ticket's power, tweened by app.js during the stamp. */
@property --pw { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ck-chip { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px 0 9px; border: 0; border-radius: 999px; cursor: pointer; background: var(--surface-2); color: var(--ink-2); font: 800 14px var(--body); position: relative; }
.ck-chip svg { width: 20px; height: 20px; flex: none; }
/* not checked in today: a dot, like an unread badge */
.ck-chip.due::after { content: ''; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--surface); }
.ck-side { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 6px; padding: 10px 14px; border: 1px solid rgba(0, 217, 122, .3); border-radius: var(--r-sm); background: var(--ground-2); color: var(--side-ink); font: 600 14px var(--body); text-align: left; cursor: pointer; transition: border-color .15s; }
.ck-side:hover { border-color: var(--green); }
.ck-side svg { width: 19px; height: 19px; flex: none; }
.ck-side em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.ck-side em b { color: var(--green); font-weight: 800; }
.ck-side.due::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.modal-ov.ck-ov { display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3, 8, 7, .72); backdrop-filter: blur(6px); }
.ck-ov .ck-sheet { animation: box-in 260ms var(--ease-enter) backwards; }
.ck-ov.leaving .ck-sheet { animation: box-out 180ms var(--ease-standard) forwards; }

/* width follows the screen height too: the ticket (aspect --ar) gets what is left of 88dvh after ~400px of header, track and button */
.ck-sheet { --g: #00d97a; --g2: #2ee6a8; --ink: #e8eef4; --mut: #94a3b8; --gold: #f5b942; --ar: 1.9;
 position: relative; width: min(560px, 100%, calc((88dvh - 400px) * 1.9 + 44px)); min-width: min(420px, 100%); padding: 18px 22px 18px; border-radius: 24px;
 background: linear-gradient(155deg, rgba(40,62,60,.92) 0%, rgba(17,29,28,.94) 34%, rgba(12,21,20,.95) 62%, rgba(20,32,31,.94) 100%);
 box-shadow: 0 0 0 1px rgba(255,255,255,.07), inset 1px 1px 0 rgba(255,255,255,.1), 0 40px 80px -24px rgba(0,0,0,.85), 0 0 60px -20px rgba(46,230,168,.12);
 -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); --pw: 0; container-type: inline-size;
 color: var(--ink); font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif; line-height: normal; -webkit-font-smoothing: antialiased }
.ck-sheet * { margin: 0; padding: 0 }
.ck-hd { display: flex; align-items: center; gap: 14px }
.ck-mk { width: 48px; height: 48px; border-radius: 14px; padding: 7px; background: linear-gradient(160deg, rgba(0,217,122,.18), rgba(0,217,122,.05)); border: 1px solid rgba(46,230,168,.35); flex: none; object-fit: contain }
.ck-tt { flex: 1; min-width: 0 }
.ck-tt h2 { font-size: 22px; font-weight: 800; letter-spacing: .5px; line-height: 1.2 }
.ck-tt p { font-size: 12.5px; color: var(--mut); margin-top: 3px; line-height: 1.35 }
.ck-sheet .ck-x { position: static; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none }
.ck-sheet .ck-x svg { width: 16px; height: 16px }
.ck-stage { margin: 6px -22px 4px; padding: 10px 22px 8px; position: relative }
.ck-ticket { position: relative; aspect-ratio: var(--ar); container-type: inline-size }
.tk-over { position: absolute; inset: 0 }
.tk-txt { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; flex-direction: column; padding: 5.2cqw 0 4.2cqw 8.4cqw; width: 78%; color: #fff; font-family: 'Inter', 'Noto Sans SC', sans-serif }
.tk-logo { height: 4.6cqw; width: auto; align-self: flex-start; filter: drop-shadow(0 0 1.2cqw rgba(0,217,122,calc(.6*var(--pw)))) saturate(calc(.2 + .8*var(--pw))) }
.tk-mp { margin-top: auto; font-size: 5cqw; font-weight: 900; font-style: italic; letter-spacing: .15cqw; line-height: 1.05; text-shadow: 0 .3cqw 1cqw rgba(0,0,0,.6) }
.tk-dc { font-size: 2.2cqw; font-weight: 700; font-style: italic; letter-spacing: .5cqw; color: var(--g2); opacity: calc(.5 + .5*var(--pw)); margin-top: .6cqw }
.tk-main { margin-top: 1.4cqw; font-size: 9.2cqw; font-weight: 900; line-height: 1.1; white-space: nowrap; opacity: calc(.72 + .28*var(--pw)); color: transparent; background: linear-gradient(180deg, #fff 10%, hsl(150 calc(100%*var(--pw)) 83%) 92%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 .35cqw .5cqw rgba(0,0,0,.55)) drop-shadow(0 0 calc(2.6cqw*var(--pw)) rgba(0,227,138,calc(.75*var(--pw)))) }
.tk-rw { margin-top: 2.2cqw; display: flex; align-items: center; gap: 2.2cqw }
.tk-rw svg { width: 7.4cqw; height: 7.4cqw; flex: none; filter: drop-shadow(0 0 1cqw rgba(255,190,60,calc(.7*var(--pw)))) saturate(calc(.2 + .8*var(--pw))) }
.tk-rw b { display: block; font-size: 5cqw; font-weight: 800; line-height: 1.15; color: hsl(155 calc(var(--pw)*100%) calc(70% - 10%*var(--pw))); text-shadow: 0 0 calc(2.2cqw*var(--pw)) rgba(0,217,122,calc(.55*var(--pw))) }
.tk-rw small { display: block; font-size: 2.7cqw; color: rgba(232,238,244,.78); margin-top: .5cqw }
.tk-acc { margin-top: 2.4cqw; font-size: 1.9cqw; font-style: italic; letter-spacing: .35cqw; color: rgba(232,238,244,.7); white-space: nowrap }
.tk-acc i { color: var(--g2); font-style: normal; letter-spacing: .1cqw }
/* lands on the clear lower half of the stub, straddling the perforation like a gate stamp; the barcode keeps the top half */
.ck-stamp { position: absolute; left: 69%; width: 28%; top: 52%; height: 44%; display: grid; place-items: center; pointer-events: none; opacity: 0 }
.ck-sheet[data-state=after] .ck-stamp { opacity: 1 }
.ck-stamp span { width: 14cqw; height: 14cqw; border-radius: 50%; display: grid; place-items: center; border: .5cqw solid #35f2a0; color: #35f2a0; font-weight: 900; font-size: 3.7cqw; letter-spacing: .2cqw; background: rgba(0,40,24,.55); box-shadow: 0 0 2.5cqw rgba(0,217,122,.8), inset 0 0 1.5cqw rgba(0,217,122,.4); transform: rotate(-14deg); text-shadow: 0 0 1.2cqw rgba(0,217,122,.9); position: relative }
.ck-stamp span::before { content: ''; position: absolute; inset: .9cqw; border-radius: 50%; border: .25cqw dashed rgba(53,242,160,.7) }
/* backwards, not both: once it ends the stamp falls back to the plain after-state styles */
.ck-sheet.played .ck-stamp { animation: ck-stamp 1.1s .55s backwards }
@keyframes ck-stamp { 0% { opacity: 0; transform: scale(2.6) } 26% { opacity: 1; transform: scale(.88) } 44% { transform: scale(1.04) } 60%, 100% { opacity: 1; transform: scale(1) } }
.ck-line { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 10px; gap: 8px }
.ck-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 9px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); font-size: 13.5px; font-weight: 600; white-space: nowrap }
.ck-pill svg { width: 20px; height: 20px; flex: none }
.ck-pill b { color: var(--g2); font-size: 16px; font-weight: 800; display: inline-block; min-width: .6em; text-align: center }
.ck-pill b.ck-tick { animation: ck-tick .5s }
@keyframes ck-tick { 0% { transform: translateY(40%); opacity: 0 } 100% { transform: none; opacity: 1 } }
.ck-track { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr) }
.ck-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--mut) }
.ck-track li::before { content: ''; position: absolute; top: 18px; right: 50%; width: 100%; height: 2px; background: rgba(255,255,255,.1); z-index: 0 }
.ck-track li:first-child::before { display: none }
.ck-track li.done::before, .ck-track li.today::before { background: var(--g) }
.ck-track li.today.pending::before { background: linear-gradient(90deg, var(--g), rgba(255,255,255,.1)) }
.ck-nd { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: #142221; border: 2px solid rgba(255,255,255,.14); color: var(--mut) }
.ck-track .done .ck-nd { background: var(--g); border-color: var(--g); color: #04140d; box-shadow: 0 0 12px rgba(0,217,122,.45) }
.ck-track .today .ck-nd { background: #0b2a1e; border-color: var(--g2); color: #fff; box-shadow: 0 0 0 3px rgba(0,217,122,.22), 0 0 16px rgba(0,217,122,.6) }
.ck-track .today.pending .ck-nd { animation: ck-ring 1.8s infinite }
.ck-track .today.filled .ck-nd { background: var(--g); color: #04140d; transition: background .4s }
@keyframes ck-ring { 50% { box-shadow: 0 0 0 6px rgba(0,217,122,.12), 0 0 22px rgba(0,217,122,.7) } }
.ck-track .gift .ck-nd { border-color: var(--gold); color: var(--gold); background: rgba(245,185,66,.08); animation: ck-gold 2.6s infinite }
@keyframes ck-gold { 50% { box-shadow: 0 0 18px rgba(245,185,66,.55) } 0%, 100% { box-shadow: 0 0 8px rgba(245,185,66,.25) } }
.ck-track .gift.today .ck-nd { border-color: var(--gold); color: var(--gold); background: rgba(245,185,66,.1); animation: ck-gold 2.6s infinite }
.ck-track .gift.today.filled .ck-nd { background: linear-gradient(160deg, #ffd36b, #f5b942); color: #2a1a00; box-shadow: 0 0 18px rgba(245,185,66,.6) }
.ck-track .today span { color: #fff; font-weight: 700 }
.ck-cap { margin: 7px 0 12px; text-align: right; font-size: 12.5px; font-weight: 600; color: #f5c26b }
.ck-cta { width: 100%; height: 54px; border: 0; border-radius: 14px; cursor: pointer; font: 800 17px 'Inter', 'Noto Sans SC', sans-serif; color: #04140d; background: linear-gradient(180deg, #34f5a2, #00d97a); box-shadow: 0 8px 28px -6px rgba(0,217,122,.6), inset 0 1px 0 rgba(255,255,255,.5); letter-spacing: .5px }
.ck-cta:active { transform: translateY(1px) }
.ck-cta:disabled { cursor: default; opacity: .85 }
.ck-foot { margin-top: 11px; text-align: center; font-size: 12px; color: var(--mut) }

/* the ticket: neon tube edge, notches top and bottom at the perforation, bites on both sides */
.ck-ticket { --r: 3.3cqw; --s: 5.4cqw; --px: 78%; --tx: 0deg; --ty: 0deg; width: 85%; margin: 0 auto; z-index: 1;
 --ht: 157; --hc: 150; --tlb: 20%; --hlc: 215,255,238; --gc1: 160,255,215; --gc2: 0,227,138; --rn: 120,255,200; --gk: 1; --hint: 0; --sat: calc(var(--pw) + .45*var(--hint)*(1 - var(--pw))) }
.ck-sheet[data-state=after] .ck-ticket { --gk: .5 }
.ck-sheet[data-day="7"] .ck-ticket { --ht: 41; --hc: 44; --tlb: 30%; --hlc: 255,238,190; --gc1: 255,226,150; --gc2: 245,185,66; --rn: 255,214,120 }
/* calm by default; hover (desktop) or press (touch, plus .is-press for 600ms) lights the full halo and one runner lap */
.ck-sheet[data-state] .ck-ticket:is(.is-press, :active) { --gk: 1; --hint: 1 }
@media (hover: hover) { .ck-sheet[data-state] .ck-ticket:hover { --gk: 1; --hint: 1 } }
.ck-sheet[data-state=after] .ck-ticket:is(.is-press, :active) .tk-run { animation: ck-runner 1.25s cubic-bezier(.5,0,.4,1) both }
@media (hover: hover) { .ck-sheet[data-state=after] .ck-ticket:hover .tk-run { animation: ck-runner 1.25s cubic-bezier(.5,0,.4,1) both } }
.ck-ticket:is(.is-press, :active) .tk-glow, .ck-ticket:hover .tk-glow { position: absolute; inset: 0; filter: drop-shadow(0 0 calc(4px*var(--pw)) rgba(var(--gc1),calc(.85*var(--pw)))) drop-shadow(0 0 calc(22px*var(--pw)*var(--gk) + 9px*var(--hint)*(1 - var(--pw))) rgba(var(--gc2),calc(.6*var(--pw)*var(--gk) + .3*var(--hint)*(1 - var(--pw))))) drop-shadow(0 0 calc(60px*var(--pw)*var(--gk)) rgba(var(--gc2),calc(.28*var(--pw)*var(--gk)))) drop-shadow(0 18px 18px rgba(0,0,0,.5)) }
.ck-sheet[data-state=after] .tk-glow { transition: filter .5s }
.tk-today { position: absolute; inset: 0 }
.tk-today.slide { animation: ck-slide .35s ease-out backwards }
@keyframes ck-slide { 0% { transform: translateY(-9cqw) rotate(-3deg); opacity: 0 } 45% { opacity: 1 } 100% { transform: none; opacity: 1 } }
.tk-pile { position: absolute; inset: 0 }
.ck-sheet.played .tk-pile { animation: ck-settle .3s .1s ease-out backwards }
@keyframes ck-settle { from { transform: translateY(-3px) } to { transform: none } }
/* older tickets: same shape, small and cheap, no effects, no stamps */
.tk-old { position: absolute; inset: 0; transform-origin: 50% 0; transform: translateY(calc(var(--k)*-1.6cqw)) rotate(var(--rot)) scale(var(--sc)); filter: brightness(var(--br)) drop-shadow(0 .5cqw .8cqw rgba(0,0,0,.6)) }
.o-edge { --rr: calc(var(--r) + .1cqw); --sr: calc(var(--s) + .1cqw); position: absolute; inset: 0; border-radius: 2.6cqw; background: linear-gradient(135deg, hsl(157 85% 62%), hsl(157 75% 42%) 55%, hsl(157 85% 55%)) }
.o-body { --rr: calc(var(--r) + .4cqw); --sr: calc(var(--s) + .4cqw); position: absolute; inset: .5cqw; border-radius: 2.2cqw; overflow: hidden; background: #06130f }
.o-face { position: absolute; left: 0; top: 0; width: 78%; height: 100%; background: linear-gradient(90deg, #0b2018, #0f2c21 60%, #0a1d16) }
.o-stub { position: absolute; left: 78%; right: 0; top: 0; bottom: 0; background: linear-gradient(160deg, #0b2a1f, #04120d 70%) }
.o-perf { position: absolute; left: calc(78% - 1px); top: 4.4cqw; bottom: 4.4cqw; border-left: .3cqw dashed rgba(180,255,220,.4) }
.ck-sheet[data-day="7"] .o-edge { background: linear-gradient(135deg, hsl(157 75% 45%), hsl(157 70% 28%) 55%, hsl(157 75% 40%)) }
.ck-ticket .tk-tilt { position: absolute; inset: 0; transform: perspective(1100px) rotateX(calc(9deg + var(--tx))) rotateY(calc(-9deg + var(--ty))) rotateZ(-1.2deg); transition: transform .25s ease-out }
.tk-float { position: absolute; inset: 0 }
.ck-sheet[data-state=after] .tk-float { animation: ck-float 6s ease-in-out infinite }
/* after a live check-in, let the stamp settle before the ticket starts to float, or the stamp looks like it slides */
.ck-sheet.played[data-state=after] .tk-float { animation-delay: 1.4s }
@keyframes ck-float { 50% { transform: translateY(-1.2cqw) } }
.tk-glow { position: absolute; inset: 0; filter: drop-shadow(0 0 calc(4px*var(--pw)) rgba(160,255,215,calc(.85*var(--pw)))) drop-shadow(0 0 calc(22px*var(--pw)) rgba(0,227,138,calc(.6*var(--pw)))) drop-shadow(0 0 calc(60px*var(--pw)) rgba(0,227,138,calc(.28*var(--pw)))) drop-shadow(0 18px 18px rgba(0,0,0,.5)) }
.ck-notch, .tk-edge::before, .tk-edge::after { -webkit-mask: radial-gradient(circle var(--rr) at var(--px) 0, #0000 98%, #000), radial-gradient(circle var(--rr) at var(--px) 100%, #0000 98%, #000), radial-gradient(circle var(--sr) at 0 50%, #0000 98%, #000), radial-gradient(circle var(--sr) at 100% 50%, #0000 98%, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle var(--rr) at var(--px) 0, #0000 98%, #000), radial-gradient(circle var(--rr) at var(--px) 100%, #0000 98%, #000), radial-gradient(circle var(--sr) at 0 50%, #0000 98%, #000), radial-gradient(circle var(--sr) at 100% 50%, #0000 98%, #000); mask-composite: intersect }
/* neon tube: green tube (edge) > mint core (::before) > green tube again (::after) > body; corners peak via radial highlights */
.tk-edge { --rr: calc(var(--r) + .1cqw); --sr: calc(var(--s) + .1cqw); position: absolute; inset: 0; border-radius: 2.6cqw;
 --tube: radial-gradient(ellipse at 0 0, rgba(var(--hlc),calc(.95*var(--pw))), transparent 15%), radial-gradient(ellipse at 100% 0, rgba(var(--hlc),calc(.95*var(--pw))), transparent 15%), radial-gradient(ellipse at 0 100%, rgba(var(--hlc),calc(.95*var(--pw))), transparent 15%), radial-gradient(ellipse at 100% 100%, rgba(var(--hlc),calc(.95*var(--pw))), transparent 15%), linear-gradient(hsl(var(--ht) calc(100%*var(--sat)) calc(var(--tlb) + 28%*var(--pw))), hsl(var(--ht) calc(100%*var(--sat)) calc(var(--tlb) + 28%*var(--pw))));
 background: var(--tube) }
.tk-edge::before { content: ''; position: absolute; inset: .15cqw; border-radius: 2.5cqw; --rr: calc(var(--r) + .1cqw); --sr: calc(var(--s) + .1cqw); background: linear-gradient(135deg, hsl(var(--hc) calc(100%*var(--pw)) calc(56% + 38%*var(--pw))), hsl(var(--hc) calc(100%*var(--pw)) calc(50% + 44%*var(--pw))) 50%, hsl(var(--hc) calc(100%*var(--pw)) calc(56% + 38%*var(--pw)))) }
.tk-edge::after { content: ''; position: absolute; inset: .5cqw; border-radius: 2.3cqw; --rr: calc(var(--r) + .25cqw); --sr: calc(var(--s) + .25cqw); background: var(--tube) }
.tk-run { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; background: conic-gradient(from var(--a) at 50% 50%, transparent 0, transparent 70%, rgba(var(--rn),.55) 90%, #fff 99.2%, transparent 100%) }
.ck-sheet.played .tk-run { animation: ck-runner 1.25s .1s cubic-bezier(.5,0,.4,1) both }
@keyframes ck-runner { 0% { --a: 0deg; opacity: 1 } 88% { opacity: 1 } 100% { --a: 360deg; opacity: 0 } }
.tk-body { --rr: calc(var(--r) + .4cqw); --sr: calc(var(--s) + .4cqw); position: absolute; z-index: 2; inset: .65cqw; border-radius: 2.2cqw; overflow: hidden; background: #06130f; filter: saturate(calc(.1 + .9*var(--pw))) brightness(calc(.55 + .45*var(--pw))) }
.tk-photo { position: absolute; left: 0; top: 0; width: 78%; height: 100%; background: url(img/login-bg.webp) 0 97%/184.6% auto no-repeat; transform: scaleX(-1) }
.tk-shade { position: absolute; left: 0; top: 0; width: 78%; height: 100%; background: linear-gradient(90deg, rgba(2,12,8,.82) 0%, rgba(2,12,8,.5) 55%, rgba(2,12,8,.05) 100%), linear-gradient(0deg, rgba(2,12,8,.55), rgba(2,12,8,0) 40%), linear-gradient(180deg, rgba(2,12,8,.5), rgba(2,12,8,0) 35%) }
.tk-stub { position: absolute; left: 78%; right: 0; top: 0; bottom: 0; background: linear-gradient(160deg, #0b2a1f, #04120d 70%); box-shadow: inset 1px 0 0 rgba(255,255,255,.06) }
.tk-stub .ck-crown { position: absolute; left: 50%; top: 7%; width: 46%; transform: translateX(-50%); filter: drop-shadow(0 0 .8cqw rgba(46,230,168,.9)) }
.tk-stub .ck-bars { position: absolute; left: 50%; top: 25%; bottom: 47%; width: 30%; transform: translateX(-50%); background: repeating-linear-gradient(0deg, #6fffc4 0 .5cqw, transparent .5cqw .95cqw, #6fffc4 .95cqw 1.2cqw, transparent 1.2cqw 2cqw, #6fffc4 2cqw 3cqw, transparent 3cqw 3.4cqw); opacity: .85; filter: drop-shadow(0 0 .6cqw rgba(0,217,122,.8)) }
.tk-perf { position: absolute; left: calc(78% - 1px); top: 4.4cqw; bottom: 4.4cqw; border-left: .35cqw dashed rgba(180,255,220,.45) }
.tk-body::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; mix-blend-mode: screen; background: linear-gradient(112deg, rgba(255,255,255,.17) 0, rgba(210,255,235,.06) 24%, transparent 44%); box-shadow: inset 0 0 calc(3.2cqw*var(--pw)*var(--gk)) rgba(var(--gc2),calc(.55*var(--pw)*var(--gk))), inset 0 0 calc(.9cqw*var(--pw)) rgba(var(--hlc),calc(.5*var(--pw))) }
.tk-body::after { z-index: 4; content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(190,255,230,.4) 50%, transparent); transform: translateX(-100%) skewX(-18deg); opacity: 0; pointer-events: none }
.ck-sheet[data-state=anim] .tk-body::after { animation: ck-sweep 1s .1s ease-in-out both }
.ck-sheet[data-state=after] .tk-body::after { animation: ck-sweep-idle 4s 1.4s linear infinite }
@keyframes ck-sweep { 0% { opacity: 1; transform: translateX(-100%) skewX(-18deg) } 100% { opacity: 1; transform: translateX(480%) skewX(-18deg) } }
@keyframes ck-sweep-idle { 0% { opacity: 1; transform: translateX(-100%) skewX(-18deg) } 30% { opacity: 1; transform: translateX(480%) skewX(-18deg) } 31%, 100% { opacity: 0; transform: translateX(480%) skewX(-18deg) } }

/* gold edition (day 7) */
.ck-sheet[data-day="7"] .tk-shade { background: linear-gradient(135deg, rgba(255,190,60,.2), rgba(110,60,0,.16)), linear-gradient(90deg, rgba(14,8,0,.78) 0%, rgba(14,8,0,.45) 55%, rgba(14,8,0,.05) 100%), linear-gradient(0deg, rgba(14,8,0,.5), rgba(14,8,0,0) 40%), linear-gradient(180deg, rgba(14,8,0,.45), rgba(14,8,0,0) 35%) }
.ck-sheet[data-day="7"] .tk-stub { background: linear-gradient(160deg, #2e2208, #140e03 70%) }
.ck-sheet[data-day="7"] .tk-stub .ck-crown { fill: rgba(245,185,66,.2); stroke: #ffd36b; filter: drop-shadow(0 0 .8cqw rgba(245,185,66,.9)) }
.ck-sheet[data-day="7"] .tk-stub .ck-bars { background: repeating-linear-gradient(0deg, #ffd36b 0 .5cqw, transparent .5cqw .95cqw, #ffd36b .95cqw 1.2cqw, transparent 1.2cqw 2cqw, #ffd36b 2cqw 3cqw, transparent 3cqw 3.4cqw); filter: drop-shadow(0 0 .6cqw rgba(245,185,66,.8)) }
.ck-sheet[data-day="7"] .tk-perf { border-left-color: rgba(255,226,150,.5) }
.ck-sheet[data-day="7"] .tk-dc { color: #ffd36b }
.ck-sheet[data-day="7"] .tk-acc i { color: #ffd36b }
.ck-sheet[data-day="7"] .tk-main { background-image: linear-gradient(180deg, #fff 10%, hsl(42 calc(100%*var(--pw)) calc(100% - 38%*var(--pw))) 92%); filter: drop-shadow(0 .35cqw .5cqw rgba(0,0,0,.55)) drop-shadow(0 0 calc(2.6cqw*var(--pw)) rgba(245,185,66,calc(.7*var(--pw)))) }
.ck-sheet[data-day="7"] .tk-rw b { color: hsl(42 calc(var(--pw)*100%) calc(76% - 6%*var(--pw))); text-shadow: 0 0 calc(2.2cqw*var(--pw)) rgba(245,185,66,calc(.55*var(--pw))) }
.ck-sheet[data-day="7"] .ck-stamp span { border-color: #ffd36b; color: #ffd36b; background: rgba(48,30,0,.6); box-shadow: 0 0 2.5cqw rgba(245,185,66,.8), inset 0 0 1.5cqw rgba(245,185,66,.4); text-shadow: 0 0 1.2cqw rgba(245,185,66,.9) }
.ck-sheet[data-day="7"] .ck-stamp span::before { border-color: rgba(255,211,107,.7) }

/* stage: lit stadium scene around the ticket (ticket is 85% wide; the freed height goes to scene + pile) */
.ck-stage { overflow: hidden; --sp: 22px; --fr: calc(15cqw/var(--ar)); --pt: 10px; --pb: 8px; --ft: calc(var(--pt) + .76*var(--fr)); isolation: isolate; padding-top: var(--ft); padding-bottom: calc(var(--pb) + .24*var(--fr));
 background: linear-gradient(180deg, rgb(14,24,23), rgba(14,24,23,0) 6%), linear-gradient(0deg, rgb(14,24,23) 0, rgba(14,24,23,.5) 8%, rgba(14,24,23,0) 30%), linear-gradient(rgba(0,8,5,calc(.55 - .38*var(--pw))), rgba(0,8,5,calc(.55 - .38*var(--pw)))), linear-gradient(rgb(78,82,80), rgb(78,82,80)), url(img/login-bg.webp) 0 20%/200% auto no-repeat;
 background-blend-mode: normal, normal, normal, color, normal;
 background-color: #06130f }
.ck-stage::before, .ck-stage::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none }
.ck-stage::before { mix-blend-mode: screen; opacity: var(--pw);
 -webkit-mask: linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%); mask: linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%);
 background:
  radial-gradient(ellipse 66% 17% at 50% 93%, rgba(0,227,138,.7), transparent),
  linear-gradient(0deg, rgba(60,235,140,.1) 0, rgba(90,255,160,.3) 7%, rgba(60,235,140,.12) 15%, transparent 22%),
  radial-gradient(ellipse 85% 45% at 50% 55%, rgba(150,255,210,.09), transparent) }
/* floodlight bursts above the ticket's top corners */
.tk-flare { position: absolute; top: 0; width: 200px; height: 200px; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: var(--pw); --fy: calc(var(--ft) - 16px);
 -webkit-mask: radial-gradient(circle 100px at 50% var(--fy), #000 55%, transparent 100%); mask: radial-gradient(circle 100px at 50% var(--fy), #000 55%, transparent 100%);
 background: radial-gradient(circle 20px at 50% var(--fy), #fff 25%, rgba(225,255,242,.9) 55%, transparent), radial-gradient(circle 85px at 50% var(--fy), rgba(0,227,138,.85), rgba(0,227,138,.3) 50%, transparent),
 conic-gradient(from var(--rot0,100deg) at 50% var(--fy), transparent 0 2deg, rgba(235,255,245,1) 6deg, transparent 11deg 15deg, rgba(235,255,245,.85) 19deg, transparent 23deg 29deg, rgba(235,255,245,1) 33deg, transparent 38deg 44deg, rgba(235,255,245,.8) 48deg, transparent 53deg 360deg) }
.tk-flare.l { left: calc(var(--sp) + (100% - 2*var(--sp))*.075 - 100px - 6px) }
.tk-flare.r { right: calc(var(--sp) + (100% - 2*var(--sp))*.075 - 100px - 6px); --rot0: 215deg }
.ck-stage::after { opacity: calc(.9*var(--pw)); animation: ck-spark 8s ease-in-out infinite alternate;
 background:
  radial-gradient(circle 3px at 5% 24%, #fff, rgba(200,255,230,.7) 40%, transparent), radial-gradient(circle 2px at 12% 9%, #fff, transparent), radial-gradient(circle 3px at 18% 33%, rgba(210,255,235,.8), transparent),
  radial-gradient(circle 2px at 26% 16%, #fff, transparent), radial-gradient(circle 3px at 9% 46%, rgba(210,255,235,.7), transparent), radial-gradient(circle 2px at 95% 26%, #fff, transparent),
  radial-gradient(circle 3px at 87% 12%, rgba(210,255,235,.85), transparent), radial-gradient(circle 2px at 81% 31%, #fff, transparent), radial-gradient(circle 3px at 72% 8%, rgba(210,255,235,.7), transparent), radial-gradient(circle 2px at 91% 44%, rgba(210,255,235,.8), transparent) }
@keyframes ck-spark { 0% { transform: translate(0,0); filter: opacity(.45) } 50% { filter: opacity(1) } 100% { transform: translate(7px,-11px); filter: opacity(.6) } }

@media (max-width: 520px) {
  .modal-ov.ck-ov { padding: 0; align-items: flex-end }
  .ck-sheet { --ar: 1.75; width: 100%; border-radius: 24px 24px 0 0; padding: 14px 14px calc(12px + env(safe-area-inset-bottom)); max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain }
  .ck-mk { width: 42px; height: 42px }
  .ck-tt h2 { font-size: 19px } .ck-tt p { display: none }
  .ck-sheet .ck-x { width: 32px; height: 32px }
  .ck-stage { margin: 2px -14px 0; padding: 8px 14px 6px; --sp: 14px; --pt: 8px; --pb: 6px }
  .ck-line { margin: 12px 0 8px }
  .ck-pill { font-size: 12.5px; padding: 5px 11px 5px 8px } .ck-pill b { font-size: 15px }
  .ck-nd { width: 34px; height: 34px; font-size: 14px }
  .ck-track li::before { top: 16px }
  .ck-cap { margin: 5px 0 10px; font-size: 12px }
  .ck-cta { height: 50px; font-size: 16px }
  .ck-foot { margin-top: 9px; font-size: 11px }
}
/* iPhone SE-class screens with Safari bars (~550px visible): keep the button above the fold */
@media (max-width: 520px) and (max-height: 620px) {
  .ck-foot { display: none }
  .ck-line { margin: 8px 0 6px }
  .ck-nd { width: 30px; height: 30px; font-size: 13px }
  .ck-track li::before { top: 14px }
  .ck-cap { margin: 3px 0 8px }
  .ck-cta { height: 46px }
  .ck-stage { --pb: 4px }
}
/* short laptop screens (e.g. 1366x768 or 150% scaling): drop the subtitle */
@media (min-width: 521px) and (max-height: 760px) {
  .ck-tt p { display: none }
  .ck-sheet { padding-top: 14px; padding-bottom: 14px }
  .ck-foot { margin-top: 8px }
}
@media (prefers-reduced-motion: reduce) {
  .ck-sheet *, .ck-sheet *::before, .ck-sheet *::after { animation: none !important; transition: none !important }
  .ck-stage::after { display: none }
}

/* ── member UX pass: onboarding copy, glossary, quotas, tap targets ── */
.field-check { display: flex; align-items: center; gap: 8px; margin: -2px 0 14px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.field-check input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--green); flex: none; }
.field-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.mail-fix { margin: -8px 0 14px; color: var(--ink-2); }
.mail-fix .link-btn { color: var(--green); font-weight: 700; }
.rank-head .help-link { margin-left: auto; flex: none; align-self: center; }
.gl-list { display: grid; gap: 14px; margin: 6px 0 0; }
.gl-list dt { font-weight: 800; font-size: 14.5px; }
.gl-list dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
/* the unlock count spells out its parts and can outgrow one row on a phone */
.ck-line { flex-wrap: wrap; }
.pl-quota { margin: 14px 0 8px; font-size: 13px; color: var(--ink-2); text-align: center; }
.en-defs small { font-size: 11px; line-height: 1.35; color: var(--ink-3); }
/* 44px hit areas without changing how the small controls look */
.login-links .link-btn, .help-link, .pl-quota .link-btn, #en-help, .up-win button { position: relative; }
.login-links .link-btn::after, .help-link::after, .pl-quota .link-btn::after, #en-help::after {
  content: ''; position: absolute; inset: -12px -8px;
}
.up-win button::after { content: ''; position: absolute; inset: -9px -2px; }
.mh-avatar, .mh-bell { width: 44px; height: 44px; }

/* light theme: the check-in sheet's frame takes the page's colours; the
   ticket keeps its own night look, it is a picture */
html:not([data-theme="dark"]) .ck-sheet {
  --ink: #0f172a; --mut: #475569;
  background: #fff;
  box-shadow: 0 0 0 1px #e5eee7, 0 40px 80px -24px rgba(15, 23, 42, .35);
}
html:not([data-theme="dark"]) .ck-sheet .ck-x { border-color: #e5eee7; background: #f1f5f9; }
html:not([data-theme="dark"]) .ck-pill { background: #f1f5f9; border-color: #e5eee7; }
html:not([data-theme="dark"]) .ck-pill b { color: #007A3D; }
html:not([data-theme="dark"]) .ck-nd { background: #f1f5f9; border-color: #e2e8f0; }
html:not([data-theme="dark"]) .ck-track li:not(.done):not(.today)::before { background: #e2e8f0; }
html:not([data-theme="dark"]) .ck-track .today.pending:not(.gift) .ck-nd { background: #e8f6ee; color: #0f172a; }
html:not([data-theme="dark"]) .ck-track .today span { color: #0f172a; }
html:not([data-theme="dark"]) .ck-cap { color: #b45309; }
/* language switch: login corner, sidebar foot, account settings */
.lang-sw button { padding: 4px 11px; white-space: nowrap; }
.side-who { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 10px; padding: 14px 0 10px 6px; border-top: 1px solid var(--line); }
.side-who > svg { flex: none; width: 16px; height: 16px; color: var(--ink-2); }
.side-who .who { flex: 1; min-width: 0; padding: 0; color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
.side-who .lang-slot { flex: none; }
.side-who .lang-sw button { padding: 3px 7px; font-size: 11px; }
html[data-theme="dark"] .side-who, html[data-theme="dark"] .side-sep { border-top-color: rgba(255, 255, 255, .16); }
.credit-pill { --credit-mark: var(--green); --credit-num: #00693a; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-family: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.credit-pill[hidden] { display: none; }
.credit-pill svg { flex: none; width: 14px; height: 14px; color: var(--credit-mark); }
.credit-pill b { color: var(--credit-num); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.credit-pill::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--credit-fill, 0%); background: color-mix(in srgb, var(--credit-mark) 18%, transparent); transition: width .4s ease; }
html[data-theme="dark"] .credit-pill { --credit-num: var(--green); }
.credit-pill.is-low { --credit-mark: #b45309; --credit-num: #b45309; border-color: #b45309; }
html[data-theme="dark"] .credit-pill.is-low { --credit-mark: #f5b942; --credit-num: #f5b942; border-color: #f5b942; }
@media (prefers-reduced-motion: reduce) { .credit-pill::before { transition: none; } }
.credit-pill:hover { border-color: var(--credit-mark); }
.sidebar-foot .credit-pill { height: 36px; margin: 0 0 12px 16px; padding: 0 14px; font-size: 13px; }
.sidebar-foot .credit-pill b { font-size: 15px; }
.side-sep { margin: 0 10px 8px; border: 0; border-top: 1px solid var(--line); }
.mob-head .credit-pill { height: 34px; margin: 0; }
.mob-head .mh-avatar { flex: none; }
/* 1.1 avatar menu, anchored under the avatar at the bar's right edge */
.mh-menu {
  position: absolute; z-index: 60; top: calc(100% + 6px); right: 12px;
  display: grid; min-width: 168px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 45px -12px rgba(23, 60, 35, .28);
}
.mh-menu > * {
  display: block; padding: 10px 12px; border: 0; border-radius: 9px;
  background: none; color: var(--ink); font: inherit; font-size: 14px;
  text-align: left; text-decoration: none; cursor: pointer;
}
.mh-menu > :hover, .mh-menu > :focus-visible { background: var(--surface-2); outline: none; }
.mh-menu #mh-logout { color: var(--ink-3); border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 4px; }
@media (max-width: 360px) {
  .mob-head { gap: 8px; }
  .mob-head .mh-txt b { font-size: 14px; }
  .mob-head .credit-pill { padding: 0 8px; font-size: 11px; }
}
/* login-scene.js writes these chips in Chinese and has no language of its own */
html[lang="en"] .lg-tags, html[lang="en"] .lc-mtags { display: none; }
/* English runs longer: the leaderboard strip and stat label get room to stay on one line */
html[lang="en"] .rs-item { width: 96px; }
html[lang="en"] .rs-item b { max-width: 92px; }
html[lang="en"] .wk-rate i { margin-right: 3px; }

/* ── layout 1.1: no sidebar; the app bar is the top frame with four tabs,
   phones get a four-item bottom bar, 我的预测's pages a sub-tab row on deep links.
   The pages themselves are shared with 1.0, so only the frame is styled here. */
html:not([data-ui="1.1"]) .v11-only { display: none; }
html[data-ui="1.1"] .v10-only { display: none; }

/* every 1.1 tab, top bar and sub-tab row alike, is the same box: outlined at
   rest, solid when open, like the AI 分析 tabs it replaces. The minimum fits the
   longest English label, so the boxes match in both languages. */
.v11-tabs, .v11-sub { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.v11-sub { display: none; width: fit-content; padding: 16px 32px 0; }
html[data-ui="1.1"][data-nav-group="mine"] .v11-sub[data-group="mine"] { display: grid; }
:is(.v11-tabs, .v11-sub) .nav-item {
  width: auto; min-width: 140px; min-height: 40px; padding: 0 18px; justify-content: center;
  color: var(--ink-2); font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
:is(.v11-tabs, .v11-sub) .nav-item[aria-current="page"] { color: #fff; background: var(--green); border-color: var(--green); box-shadow: none; }
html[data-theme="dark"] :is(.v11-tabs, .v11-sub) .nav-item[aria-current="page"] { color: #04110a; }
/* the AI 分析 panes are switched from the 1.1 top bar and bottom bar instead */
html[data-ui="1.1"] .an-tabs { display: none; }

@media (min-width: 768px) {
  html[data-ui="1.1"] .shell { padding: 16px 24px; }
  /* the desktop title bar scrolls away under the sticky app bar */
  html[data-ui="1.1"] .topbar { position: static; }
  html[data-ui="1.1"] .mob-head {
    display: flex; align-items: center; gap: 20px;
    position: sticky; top: 0; z-index: 20;
    padding: 12px 32px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  html[data-ui="1.1"] .mob-head > img { height: 44px; width: auto; }
  html[data-ui="1.1"] .mh-txt { display: none; }
  html[data-ui="1.1"] .mh-spacer { flex: 1; }
  html[data-ui="1.1"] .mob-head .credit-pill { height: 38px; }
  html[data-ui="1.1"] .mh-avatar {
    position: relative; overflow: hidden;
    width: 38px; height: 38px; padding: 0;
    display: grid; place-items: center;
    border: 0; border-radius: 50%; cursor: pointer;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff; font-weight: 700; font-size: 15px;
  }
  html[data-ui="1.1"] .mh-avatar.has-img { background: var(--surface-2); }
  html[data-ui="1.1"] .mh-bell {
    position: relative; width: 38px; height: 38px; padding: 0;
    display: grid; place-items: center;
    border: 0; border-radius: 50%; cursor: pointer;
    background: var(--surface-2); color: var(--ink-2);
  }
  html[data-ui="1.1"] .mh-bell svg { width: 19px; height: 19px; }
  html[data-ui="1.1"] .mh-bell.on { color: var(--green); }
  .v11-tabs { display: grid; }
  /* 1.1 pages share the AI 分析 column (.an-wrap: 1120px wide, 22px inside it),
     so switching tabs never moves the content's edges; the bars keep full width */
  html[data-ui="1.1"] :is(.topbar, .v11-sub, .page-body-wrap) { padding-inline: max(22px, calc((100% - 1120px) / 2 + 22px)); }
}

/* the four tabs at full width do not fit beside the language switch on a tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  html[data-ui="1.1"] .mob-head { gap: 12px; padding-inline: 16px; }
  .v11-tabs .nav-item { min-width: 0; padding: 0 10px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 767px) {
  .v11-tabs { display: none; }
  .mob-head .lang-sw button { padding: 3px 7px; font-size: 11px; }
  .v11-sub { width: auto; padding: 12px 12px 0; }
  .v11-sub .nav-item { min-width: 0; }
  /* the AI 聊天预测 panel sits 12px in on phones; the other pages line up with it */
  html[data-ui="1.1"] .page-body-wrap { padding-inline: 12px; }
}
