/* 蜂眼 · shared visual system. Presentation only; behavior stays in the existing modules. */
:root {
  --bg: #f3f6fc;
  --paper: #fff;
  --ink: #18283f;
  --muted: #52627a;
  --line: #dbe3ef;
  --accent: #1659d5;
  --soft: #eaf1ff;
  --green: #168365;
  --red: #d84257;
  --navy: #123c82;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
  font-synthesis: weight;
  color-scheme: light;
}
body { background: #e9eff9; font-size: 15px; line-height: 1.6; }
button, input, select, textarea { font-family: inherit; }
button { line-height: 1.5; }
input, select, textarea { background: #f8faff; font-size: 16px; border-color: #dbe4f2; }
input::placeholder, textarea::placeholder { color: #72829a; opacity: 1; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px #2463eb16; }
input[type=checkbox] { accent-color: var(--accent); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #85b1ff; outline-offset: 3px; }
label { font-size: 14px; color: #334b6b; }
h1, h2, h3 { letter-spacing: 0; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
.tiny, .small { font-size: 13px; }
.primary { background: var(--accent); color: #fff; box-shadow: 0 5px 12px #2463eb1a; }
.secondary { background: var(--soft); color: #2259bb; }
.quiet { background: #eef2f8; color: #526582; }
.primary, .secondary, .quiet { font-size: 14px; border-radius: 12px; min-height: 44px; }
.link-btn { font-size: 13px; }
.badge, .status-tag { font-size: 13px; line-height: 1.5; }
.pill { font-size: 13px; color: #61738d; }
.pill.active { background: var(--accent); color: white; }
.positive { color: var(--red); }
.negative { color: var(--green); }
.phone-shell { max-width: 520px; background: var(--bg); box-shadow: 0 0 80px #2242730d; }
.main { padding: 24px 20px calc(110px + env(safe-area-inset-bottom)); }
.mobile-header { margin-bottom: 24px; align-items: center; }
.mobile-header .row { gap: 12px; min-width: 0; }
.mobile-header .brand-mark { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 4px 12px #123d8626; }
.mobile-header .eyebrow { font-size: 13px; letter-spacing: .5px; color: #657894; margin-bottom: 2px; }
.mobile-header h1 { font-size: 25px; line-height: 1.35; letter-spacing: .2px; }
.header-actions .icon-button { width: 40px; height: 40px; border: 1px solid #e1e9f5; background: #fff; color: #365d98; }
.header-actions > * + * { margin-left: 8px; }
.page-foot { font-size: 13px; line-height: 1.9; color: #52627a; margin-top: 32px; }
.bottom-nav { max-width: 520px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-color: #e3eaf6; box-shadow: 0 -6px 26px #25416c08; }
.bottom-nav button { font-size: 13px; color: #52627a; min-height: 54px; border-radius: 14px; }
.bottom-nav button.active { color: #205fe6; background: #edf3ff; }
.bottom-nav button.active:before { display: none; }
.bottom-nav button > svg { margin-bottom: 4px; width: 22px; height: 22px; }
.nav-dot { background: #e54c66; right: 22%; top: 3px; }
.main h2 { font-size: 19px; line-height: 1.5; }
.section-title { margin: 28px 0 14px; gap: 12px; }
.section-title span { font-size: 13px; }
.main .source-line { font-size: 13px; color: #52627a; line-height: 1.8; }
.card, .rank-list, .product-list, .mine-block, .mine-follow-card, .hall-card, .debate-post, .la-card, .holding-readonly { border-color: #e3eaf5; box-shadow: 0 4px 16px #24477604; }
.main .card { padding: 20px; }
.banner-track, .banner { border-radius: 21px; }
.banner { height: 172px; padding: 26px; background: linear-gradient(125deg, #143c85, #246bef); }
.banner.orange { background: linear-gradient(125deg, #0d527f, #008db7); color: white; }
.banner.image:before { background: linear-gradient(90deg, #102e70ed, #12366e55); }
.banner-kicker { font-size: 13px; letter-spacing: 1.5px; opacity: .85; }
.banner strong { font-size: 25px; letter-spacing: .5px; margin: 9px 0; }
.banner span:last-of-type { font-size: 13px; opacity: .94; }
.banner-controls { height: 30px; }
.banner-controls div { gap: 7px; }
.banner-controls div button { background: #cad7ec; }
.banner-controls div button.active { background: var(--accent); width: 22px; }
.banner-pause { color: #607796; min-width: 32px; min-height: 28px; }
.live-line { font-size: 13px; color: #647995; margin: 3px 2px 16px; flex-wrap: wrap; }
.live-line .link-btn { font-size: 13px; }
.live-line .connection-dot { width: 6px; height: 6px; }
.cap-card { padding: 22px 20px 0; border-radius: 22px; border-color: #dbe6f9; background: linear-gradient(140deg, #fff 50%, #f1f6ff); box-shadow: 0 8px 26px #2559a008; }
.cap-open > .between { color: #4c6384; font-size: 14px; }
.cap-number { font-size: clamp(30px, 8vw, 39px); line-height: 1.25; letter-spacing: -1px; color: #163e84; margin: 14px 0 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cap-number small { font-size: 24px; font-weight: 500; }
.metric-link { color: #667f9f; font-size: 13px; }
.home-stats { grid-template-columns: 1fr 1.2fr .8fr; gap: 10px; padding: 18px 0 20px; margin-top: 22px; border-color: #e2eafa; }
.home-stats span { color: #52627a; font-size: 13px; }
.home-stats strong { font-size: 21px; color: #203f6e; line-height: 1.3; font-weight: 600; letter-spacing: -.4px; }
.home-stats small { color: #52627a; font-size: 13px; }
.shortcut-grid { padding: 20px 0 0; gap: 8px; }
.shortcut-grid button { font-size: 13px; color: #425c80; gap: 9px; }
.shortcut-grid svg { color: #2866da; background: #e6efff; padding: 13px; border-radius: 17px; }
.rank-filter .pill { font-size: 13px; padding: 8px 18px; background: #e9eef8; }
.rank-filter .pill.active { background: #2463eb; }
.rank-list { border-radius: 18px; }
.rank-row { padding: 17px 14px; gap: 11px; border-color: #edf1f7; min-height: 84px; }
.rank-number { font-size: 14px; color: #8091ab; min-width: 15px; }
.rank-number.top { color: #2463eb; }
.rank-row .avatar { width: 46px; height: 48px; border-radius: 12px; }
.rank-row strong { font-size: 15px; max-width: none; font-weight: 600; }
.rank-row small { font-size: 13px; color: #52627a; margin-top: 4px; }
.rank-row > b { font-size: 17px; font-weight: 600; }
.major-tabs { gap: 7px; padding-bottom: 12px; border-color: #dfe7f3; margin-bottom: 16px; }
.major-tabs .pill { font-size: 15px; color: #52627a; padding: 9px 14px; border-radius: 11px; }
.major-tabs .pill.active { background: #2463eb; color: #fff; box-shadow: 0 4px 9px #2463eb18; }
.major-tabs small { font-size: 13px; }
.analysis-tabs .pill { font-size: 14px; padding: 9px 11px; }
.subboards .pill { font-size: 13px; padding: 8px 14px; }
.subboards .pill.active { background: #e4edff; color: #205bc2; font-weight: 600; }
.toolbar { margin-top: 18px; margin-bottom: 15px; }
.toolbar input, .toolbar select { font-size: 14px; min-height: 46px; }
.toolbar select { width: 118px; border-radius: 12px; background: #fff; }
.search input { background: #eaf0f9; }
.search svg { color: #6c83a3; top: 15px; }
.search-scope, .list-head { font-size: 13px; color: #52627a; }
.product-list { border-radius: 18px; }
.product { padding: 18px 14px; border-color: #edf1f7; }
.product:hover { background: #f6f9ff; }
.product-main .avatar { width: 49px; height: 51px; border-radius: 12px; }
.product-main > .avatar { margin-right: 12px; }
.product-main > .grow { margin-right: 8px; }
.product-name { font-size: 15px; max-width: none; white-space: normal; line-height: 1.5; font-weight: 600; }
.product-sub { font-size: 13px; color: #52627a; margin-top: 5px; line-height: 1.6; }
.product-price { font-size: 18px; color: #213e6b; font-variant-numeric: tabular-nums; }
.product-price .tiny { font-size: 13px; color: #6d809d; }
.product > .star { min-width: 34px; min-height: 44px; margin-left: 3px; }
.no-ask { font-size: 13px; color: #52627a; }
.notice-intro, .holdings-connect { padding: 22px; background: linear-gradient(125deg, #e2edff, #eff5ff); color: #234d91; border-radius: 19px; }
.notice-intro .eyebrow { font-size: 13px; color: #5376a7; letter-spacing: 1px; }
.notice-intro h2 { font-size: 23px; }
.notice-intro p { color: #5977a0; font-size: 13px; margin-top: 9px; }
.notice-intro b { color: #205ac2; font-size: 19px; }
.notice-tabs { padding: 4px; background: #e9eff9; border-radius: 13px; gap: 3px; }
.notice-tabs .pill { flex: 1; padding: 10px 4px; font-size: 14px; }
.notice-tabs b { font-size: 13px; }
.notice-tabs .active { background: white; color: #205bc7; box-shadow: 0 3px 9px #2447760a; }
.notice-row { padding: 22px 2px; gap: 13px; border-color: #dfe7f3; }
.notice-icon { width: 42px; height: 44px; color: #3c70c5; background: #e6eeff; border-radius: 13px; }
.notice-meta { font-size: 13px; color: #466eaa; margin-bottom: 8px; }
.notice-meta > span { font-size: 13px; color: #70829c; }
.notice-row strong { font-size: 16px; line-height: 1.65; font-weight: 600; }
.notice-row small { color: #52627a; font-size: 13px; margin-top: 10px; }
.article-body, .notice-rich { color: #344a69; font-size: 16px; line-height: 1.95; }
#sheet[data-view="notice"] { max-width: 520px; }
.hour-bars i { background: #6fa0f5; }
.hour-bars button:hover i { background: #2463eb; }
.hour-chart > .between { font-size: 13px; color: #697e9b; }
.mine-v2 { gap: 16px; padding-top: 0; }
.mine-block { border-radius: 20px; padding: 0 20px; }
.mine-identity { padding: 23px 0; gap: 16px; }
.mine-identity .profile-avatar { width: 62px; height: 62px; border-radius: 21px; background: linear-gradient(140deg, #2766eb, #659fff); box-shadow: 0 6px 18px #2463eb20; }
.mine-caption { font-size: 13px; color: #52627a; }
.mine-nickname { color: #183763; font-size: 24px; padding: 3px 0 9px; }
.mine-badges { gap: 7px; align-items: center; }
.mine-badges button, .hall-cert-badge { font-size: 13px; border-radius: 6px; padding: 4px 8px; }
.level-badge { background: #e9f0ff; color: #2864c9; }
.member-badge { background: #eef1f6; color: #687b96; }
.hall-cert-badge.unverified { color: #687b96; background: #eef1f6; }
.mine-block-title { font-size: 13px; color: #52627a; padding-top: 19px; }
.mine-portfolio, .holding-summary, .mine-assets { background: linear-gradient(125deg, #133e86, #2468da); color: #fff; border-radius: 22px; }
.mine-portfolio { padding: 23px 22px 8px; }
.mine-portfolio > .between h2 { font-size: 15px; color: #e1ecff; }
.mine-portfolio > .between button { color: #d2e3ff; font-size: 13px; }
.mine-portfolio-grid span, .mine-portfolio-grid small, .holding-summary span, .holding-summary small { color: #c9ddff; font-size: 13px; }
.mine-portfolio-grid strong { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mine-portfolio-grid .positive { color: #ffb6c0; }
.mine-portfolio-grid .negative { color: #91efce; }
.mine-data-note, .mine-sync-entry { color: #cfdef5; font-size: 13px; line-height: 1.8; }
.mine-row strong { font-size: 15px; color: #274569; }
.mine-row small { font-size: 13px; color: #52627a; line-height: 1.7; }
.mine-block .mine-row { padding: 18px 0; }
.menu-icon { width: 38px; height: 40px; border-radius: 12px; color: #3773dc; background: #ebf2ff; }
.mine-count { color: #637b9e; font-size: 14px; }
.mine-unread, .message-tabs b { background: #e3566d; }
.mine-follow-tabs, .debate-tabs, .message-tabs, .detail-tabs { background: #eaf0fa; border-color: #dfe7f5; padding: 5px; }
.mine-follow-tabs button, .debate-tabs button, .message-tabs button, .detail-tabs button { color: #617b9e; font-size: 14px; min-height: 42px; }
.mine-follow-tabs button.active, .debate-tabs button.active, .message-tabs button.active, .detail-tabs button.active { background: #fff; color: #225ecb; box-shadow: 0 2px 8px #24477609; }
.mine-info p, .mine-levels > div, .mine-follow-options button, .mine-follow-options b { font-size: 13px; }
.mine-product strong, .mine-person strong { font-size: 15px; }
.mine-product small, .mine-person small { font-size: 13px; }
.debate-hero, .hall-hero, .la-overview { background: linear-gradient(125deg, #153f89, #2f6cd2); color: white; }
.debate-hero { padding: 20px 18px; gap: 12px; }
.debate-hero span, .debate-hero p, .hall-hero-top, .hall-hero > p, .hall-people > span, .la-overview .eyebrow, .la-overview > p, .la-metrics span, .la-metrics small { color: #d1e2ff; font-size: 13px; }
.debate-hero h2 { font-size: 21px !important; }
.debate-hero button { background: #fff; color: #215ec7; font-size: 13px; padding: 11px 12px; }
.debate-quota { border-color: #dfe7f5; padding: 16px; border-radius: 16px; }
.debate-quota strong { color: #385a89; font-size: 13px; }
.debate-quota p, .debate-quota small, .debate-quota .link-btn { font-size: 13px; }
.debate-allowance b { font-size: 17px; }
.debate-categories button { font-size: 13px; padding: 11px 2px; }
.debate-categories button.active { background: #e3edff; color: #265fc5; }
.debate-sorts { gap: 20px; padding: 15px 2px; }
.debate-sorts button { font-size: 13px; min-height: 30px; }
.debate-post { padding: 19px 17px; border-radius: 18px; }
.debate-author > i, .hall-author > i { width: 38px; height: 38px; border-radius: 13px; background: #e8effd; color: #3d6ab7; }
.debate-author strong, .hall-author strong { font-size: 14px; color: #2b4b78; }
.debate-author strong span { font-size: 13px; }
.debate-author small, .debate-author small.debate-cert, .hall-author small { font-size: 13px; line-height: 1.65; }
.debate-post h3, .hall-card > h3 { font-size: 18px; line-height: 1.6; color: #1e3c69; margin-top: 17px; }
.debate-post-open p, .debate-body, .hall-body { font-size: 15px; line-height: 1.9; color: #4d6382; }
.debate-post footer { gap: 20px; }
.debate-post footer button, .debate-admin-actions button { font-size: 13px; min-height: 32px; }
.debate-note, .hall-member-note { font-size: 13px; }
.hall-create strong { font-size: 13px; }
.hall-create small, .hall-filters button { font-size: 13px; }
.la-overview h2 { color: white; }
.la-live, .la-live.paused { color: #d3e4ff; }
.la-metrics b { font-size: 28px; }
.la-card h3 { font-size: 18px; }
.la-fields dd { font-size: 14px; line-height: 1.7; }
.la-fields dt, .la-fields small, .la-serial, .la-card-foot > span { font-size: 13px; }
.la-user-open strong, .la-held strong { font-size: 14px; }
.la-user-open small, .la-save, .la-user-note, .la-user-scopes > button, .la-purchase-facts, .la-person-item > small { font-size: 13px; }
.la-search-button { background: #2463eb; min-height: 42px; }
.la-user-search .search { display: flex; align-items: center; padding: 9px 12px; border: 1px solid #dce7f7; border-radius: 12px; background: #f0f5fd; }
.la-user-search .search svg { position: static; flex: none; }
.la-user-search input { font-size: 15px; font-weight: 400; background: transparent; border: 0; box-shadow: none; }
.la-user-search .search:focus-within { border-color: #2463eb; outline: 3px solid #2463eb16; }
.la-user-search h3 { font-size: 17px; }
.la-user-search .between > small { font-size: 13px; }
.la-person-item > strong { font-size: 15px; }
.la-serial-toggle { font-size: 13px; min-height: 44px; }
.nb-ranking { background: #102e63; border-radius: 20px; color: #f4f8ff; margin-left: 0; margin-right: 0; }
.nb-rank-hero { background: radial-gradient(ellipse at 90% 0%, #4b99ff70, transparent 65%), linear-gradient(135deg, #1b4f9b, #102e63); border-color: #ffffff18; }
.nb-rank-hero > span, .nb-rank-hero p, .nb-rank-meta, .nb-rank-footer, .nb-rank-caption, .nb-rank-score > small, .nb-rank-position small { color: #bfd2f2; font-size: 13px; }
.nb-rank-hero h2 { color: white; letter-spacing: 3px; }
.nb-rank-row { background: linear-gradient(110deg, #224c88, #193d74); box-shadow: inset 0 0 0 1px #648bc53b; height: 76px; padding-right: 12px; }
.nb-rank-list { gap: 10px; }
.nb-rank-user strong { font-size: 15px; line-height: 1.5; font-weight: 600; }
.nb-rank-score, .nb-rank-position.podium > b { color: #fff; }
.nb-rank-position small.up { color: #ffb6c0; }
.nb-rank-position small.down { color: #91efce; }
.nb-rank-meta { padding: 16px 14px; }
.nb-rank-meta button { color: #e0ecff; background: #2c5694; border-color: #7498d04f; font-size: 13px; }
.nb-rank-avatar { background: #365f9c; color: #e0edff; }
.nb-rank-chevron { color: #a9c4ec; }
#sheet[data-view="rank-user"] { background: #f4f7fc; color: #1a355d; }
#sheet[data-view="rank-user"] .sheet-header { border-color: #dde7f7; }
#sheet[data-view="rank-user"] .icon-button { color: #365b91; background: #e9f0fb; }
.nb-purchase-list li { background: #fff; border-color: #dde7f6; padding: 17px 14px; }
.nb-purchase-profile p, .nb-purchase-heading span, .nb-purchase-summary, .nb-purchase-facts dt, .nb-purchase-facts small, .nb-purchase-marker, .nb-purchase-marker time, .nb-purchase-note, .nb-purchase-time, .nb-purchase-empty { color: #52627a; font-size: 13px; }
.nb-purchase-summary b, .nb-purchase-facts dd, .nb-purchase-empty strong { color: #245dbd; }
.nb-purchase-heading button { background: #e9f0ff; color: #245fc8; border-color: #cbdcf8; }
.nb-purchase-list strong { font-size: 16px; }
.nb-purchase-facts dd { font-size: 15px; }
.nb-product-placeholder { background: #e8f0ff; color: #5880bb; }
.login-shell { max-width: 520px; background: radial-gradient(ellipse at 80% 0%, #d9e8ff, transparent 55%), #f3f6fc; padding: 62px 25px 35px; }
.login-mobile-brand { margin: 0 4px 38px; font-size: 30px; color: #143d7b; }
.brand img { width: 68px; height: 68px; border-radius: 19px; }
.brand > img { margin-right: 16px; box-shadow: 0 7px 22px #1d56b52b; }
.brand small { font-size: 13px; letter-spacing: 2px; margin-top: 5px; color: #647fa6; }
.login-card { padding: 28px 24px; border-color: #dfE8f7; box-shadow: 0 12px 32px #24477607; border-radius: 23px; }
.login-card h2 { font-size: 25px; }
.login-card > p { font-size: 14px; }
.login-card input, .login-card .primary { min-height: 50px; }
.login-note { font-size: 13px; color: #687e9d; }
.market-sheet, dialog { max-width: 520px; width: min(520px, 100vw); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 80px #0c24442e; }
dialog::backdrop { background: #142e525e; backdrop-filter: blur(4px); }
.market-sheet .sheet-content, .sheet-content { padding: 24px 22px calc(28px + env(safe-area-inset-bottom)); }
.sheet-header h2 { font-size: 20px; }
.sheet-text { color: #5b718f; font-size: 14px; }
.sheet-price, .detail-heading .sheet-price { font-size: 34px; color: #204f98; }
.detail-quick button { font-size: 13px; min-height: 40px; }
.sheet-metrics { background: #f0f5fd; padding: 18px 12px; }
.sheet-metrics span { font-size: 13px; }
.sheet-metrics b, .market-sheet .sheet-metrics b { font-size: 19px; }
.market-sheet .table, .table { font-size: 13px; }
.table th { font-size: 13px; }
.serial, .market-sheet .serial { font-size: 13px; }
.trend-stats span { font-size: 13px; }
.trend-stats b { font-size: 17px; }
.metric-periods { background: #eaf0fb; }
.metric-periods .pill.active { background: #2463eb; }
.metric-heading > span { font-size: 14px; }
.metric-heading > strong { color: #1d4c93; font-size: 35px; }
.metric-heading > small, .metric-refresh, .metric-readout { font-size: 13px; }
.metric-readout { background: #eef4ff; color: #627fa5; padding: 16px; }
.metric-readout b { font-size: 17px; color: #245eb6; }
.metric-chart text, .trend-chart text { fill: #637b9b; font-size: 14px; }
.metric-chart path[stroke="#467e62"] { stroke: #2463eb; }
.metric-chart circle[fill="#467e62"] { fill: #2463eb; }
.empty p, .message-empty p { font-size: 13px; }
.message p { font-size: 14px; color: #526b8b; }
.message-summary, .message-description { font-size: 13px; }
#toast { font-size: 14px; background: #183765f2; max-width: min(88%, 450px); }
#listing-push { background: #fff; border-color: #ccdcf8; box-shadow: 0 10px 40px #1d427a26; }
@media (max-width: 390px) {
  .main { padding-left: 14px; padding-right: 14px; }
  .mobile-header h1 { font-size: 23px; }
  .header-actions .icon-button { width: 36px; height: 36px; }
  .header-actions > * + * { margin-left: 6px; }
  .cap-card { padding: 20px 16px 0; }
  .home-stats { gap: 6px; }
  .home-stats strong { font-size: 18px; }
  .rank-row { gap: 8px; padding: 15px 11px; }
  .rank-row .avatar { width: 40px; height: 43px; }
  .rank-row strong { font-size: 14px; }
  .rank-row > b { font-size: 15px; }
  .product { padding: 16px 11px; }
  .product-main .avatar { width: 42px; height: 45px; }
  .product-main > .avatar { margin-right: 9px; }
  .product-name { font-size: 14px; }
  .product-price { font-size: 16px; }
  .analysis-tabs .pill { font-size: 13px; padding: 9px 10px; }
  .mine-block { padding-left: 16px; padding-right: 16px; }
  .mine-portfolio-grid strong { font-size: 23px; }
  .debate-hero { padding: 18px 15px; }
  .debate-hero button { padding: 10px; font-size: 13px; }
  .market-sheet .sheet-content, .sheet-content { padding-left: 17px; padding-right: 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Five equal-width purchase windows remain usable on narrow phone screens. */
.purchase-periods{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0 0 10px;padding:4px;background:#e9eef8;border-radius:12px}
.purchase-periods .pill{min-width:0;margin:0;padding:9px 2px;font-size:13px;white-space:nowrap;border-radius:9px}
.purchase-periods .pill.active{background:#2463eb;color:#fff}
.purchase-window{margin-bottom:12px}
#purchase-ranking .rank-row>b{flex-shrink:0;text-align:right}
#purchase-ranking .purchase-average{margin-top:5px;font-weight:400;line-height:1.5}
.purchase-average span{display:block}
.purchase-average span:last-child{font-size:13px;color:#31557e;font-weight:600}

/* Shared type scale and mobile layout. */
body { color: var(--ink); font-size: 16px; line-height: 1.6; }
button, input, select, textarea { letter-spacing: 0; }
input, select, textarea { font-size: 16px; color: #18283f; }
input::placeholder, textarea::placeholder { color: #627087; }
button, a, summary { -webkit-tap-highlight-color: #1659d51c; }
.number, .product-price, .home-stats strong, .la-fields dd, .nb-purchase-facts dd { font-variant-numeric: tabular-nums lining-nums; }
.main { padding: 22px 18px calc(104px + env(safe-area-inset-bottom)); }
.mobile-header { margin-bottom: 20px; }
.mobile-header h1 { font-size: 26px; color: #172b4d; font-weight: 700; }
.mobile-header .brand-mark { width: 48px; height: 48px; border-radius: 14px; }
.mobile-header .eyebrow { color: #52627a; font-size: 13px; letter-spacing: 0; }
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.header-actions > * + * { margin-left: 0; }
.header-actions .icon-button { width: 44px; height: 44px; color: #244e8a; border-color: #d5dfed; }
.header-actions svg { width: 21px; height: 21px; }
.bottom-nav { left: 0; right: 0; margin: 0 auto; transform: none; background: #fff; backdrop-filter: none; border-top: 1px solid #d5dfed; padding-top: 7px; }
.bottom-nav button { font-size: 14px; color: #52627a; font-weight: 600; min-height: 58px; border-radius: 12px; }
.bottom-nav button.active { background: #e6efff; color: #154fbd; font-weight: 700; }
.bottom-nav button > svg { width: 23px; height: 23px; stroke-width: 2; margin-bottom: 3px; }
.nav-dot { width: 7px; height: 7px; border: 2px solid #fff; box-sizing: content-box; }
.main h2 { font-size: 20px; font-weight: 700; }
.section-title { margin: 26px 0 14px; align-items: center; }
.section-title h2 { position: relative; padding-left: 12px; }
.section-title h2:before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 4px; border-radius: 3px; background: #1659d5; }
.section-title span { font-size: 13px; }
.primary, .secondary, .quiet { font-size: 15px; font-weight: 600; min-height: 44px; }
.link-btn { font-size: 14px; font-weight: 600; min-height: 36px; }
.pill { font-size: 14px; font-weight: 600; color: #43546e; min-height: 40px; }
.pill.active { background: #1659d5; color: #fff; }
.major-tabs .pill { font-size: 16px; padding: 10px 14px; color: #43546e; }
.major-tabs .pill.active { background: #1659d5; color: #fff; }
.analysis-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
.analysis-tabs .pill { padding: 10px 2px; font-size: 15px; }
.subboards .pill { font-size: 14px; }
.main .source-line, .sheet-text, .note { color: #52627a; font-size: 14px; line-height: 1.75; }
.error, .la-warning { color: #a22a22; font-size: 14px; line-height: 1.7; }
.badge, .status-tag, .la-state, .la-person-state, .roster-delivery { font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge.orange, .status-tag.buying { color: #98410b; background: #fff0dd; }
.status-tag.sale, .la-state.listed { color: #126c4b; background: #e2f3ea; }
.status-tag.locked { color: #6843a0; background: #eee7fa; }
.status-tag.unknown, .la-state.withdrawn { color: #495b72; background: #eaf0f6; }
.la-state.sold { color: #1752b5; background: #e6eeff; }
.banner { height: 296px; padding: 23px; display: flex; flex-direction: column; justify-content: center; }
.banner strong { font-size: 28px; font-weight: 700; margin: 0 0 7px; letter-spacing: 0; }
.banner span:last-of-type { font-size: 15px; opacity: 1; }
.banner-controls { height: 34px; }
.banner-pause { min-height: 32px; min-width: 36px; }
.live-line, .live-line .link-btn { font-size: 13px; color: #52627a; }
.live-line .connection-dot { width: 8px; height: 8px; }
.cap-card { padding: 22px 18px 0; border-color: #cbdaf0; border-radius: 20px; background: #fff; }
.cap-open > .between { font-size: 15px; font-weight: 600; color: #354b6a; }
.cap-number { font-size: clamp(34px,8vw,42px); color: #134891; letter-spacing: -.5px; margin-top: 13px; }
.cap-number small { font-size: 25px; }
.metric-link { color: #245bb7; font-size: 13px; font-weight: 600; }
.home-stats { grid-template-columns: 1fr 1.2fr .8fr; gap: 8px; margin-top: 18px; padding: 18px 0 22px; }
.home-stats span { font-size: 13px; color: #52627a; }
.home-stats strong { font-size: 23px; font-weight: 700; color: #19385f; margin-top: 6px; letter-spacing: -.3px; }
.shortcut-grid button { font-size: 14px; color: #354b6a; font-weight: 600; }
.shortcut-grid svg { background: #e6efff; border: 1px solid #d5e2fa; }
.rank-filter .pill { font-size: 14px; }
.rank-row { min-height: 86px; padding: 15px 13px; }
.rank-row strong, .product-name { font-size: 16px; font-weight: 600; color: #182d4b; line-height: 1.5; }
.rank-row small, .product-sub { font-size: 13px; color: #52627a; line-height: 1.65; }
.rank-number { color: #5a6d89; font-size: 15px; font-weight: 600; }
.rank-number.top, .vote-rank.top { color: #1659d5; font-weight: 700; }
.rank-row > b { font-size: 18px; font-weight: 700; }
.toolbar input, .toolbar select { font-size: 16px; min-height: 46px; }
.toolbar .search { min-width: 0; }
.toolbar select { width: 116px; flex-shrink: 0; }
.search input { background: #eef2f8; border: 1px solid #d7dfeb; }
.product-price { font-size: 19px; font-weight: 700; }
.product-price .tiny { font-size: 13px; font-weight: 400; color: #52627a; }
.product { padding: 17px 12px; }
.product-main > .grow { min-width: 0; }
.no-ask { color: #52627a; font-size: 14px; font-weight: 600; }
.notice-intro { padding: 20px; background: #e8f0ff; border: 1px solid #d0dff6; }
.notice-intro h2 { font-size: 22px; color: #194f9d; }
.notice-intro p { font-size: 14px; color: #52627a; margin-top: 6px; }
.notice-tabs .pill { font-size: 15px; }
.notice-tabs .pill.active { color: #154fbd; background: #fff; box-shadow: inset 0 0 0 1px #bed2f5; }
.notice-tabs b { font-size: 13px; }
.notice-row strong { font-size: 17px; font-weight: 600; color: #182d4b; }
.notice-meta, .notice-meta > span, .notice-row small { font-size: 13px; color: #52627a; }
.article-body, .notice-rich { color: #243954; font-size: 16px; line-height: 1.9; }
.mine-row strong, .mine-product strong, .mine-person strong { font-size: 16px; color: #182d4b; }
.mine-row small { font-size: 13px; color: #52627a; }
.mine-block-title { color: #354b6a; font-size: 15px; font-weight: 600; }
.mine-portfolio > .between h2 { font-size: 16px; color: #fff; }
.mine-portfolio > .between button, .mine-data-note, .mine-sync-entry { color: #e3edff; font-size: 13px; }
.mine-portfolio-grid strong { font-size: 28px; font-weight: 700; }
.mine-badges button, .hall-cert-badge { font-size: 13px; }
.level-badge { color: #174fb5; background: #e5edff; }
.mine-badges .member-badge { color: #79521b; background: #fff0cf; }
.mine-follow-tabs button, .debate-tabs button, .message-tabs button, .detail-tabs button { font-size: 15px; color: #43546e; font-weight: 600; }
.mine-follow-tabs button.active, .debate-tabs button.active, .message-tabs button.active, .detail-tabs button.active { color: #154fbd; box-shadow: inset 0 0 0 1px #c3d6f5; }
.ranked-hot-product strong, .ranked-hot-buyers strong, .volatility-name strong { font-size: 16px; color: #182d4b; }
.ranked-hot-product .avatar { width: 44px; height: 46px; }
.ranked-hot-product small, .ranked-hot-buyers small, .volatility-name small, .volatility-value small { color: #52627a; font-size: 13px; }
.ranked-hot-buyers > summary { min-height: 44px; padding: 12px 14px; font-size: 14px; color: #245bb7; }
.volatility-kind button, .volatility-periods .pill { font-size: 14px; min-height: 40px; }
.volatility-detail, .volatility-rule, .volatility-status { font-size: 13px; color: #52627a; }
.release-overview { margin-top: 18px; background: #e8f0ff; border-color: #d0dff6; }
.release-overview h2 { font-size: 22px; letter-spacing: 0; color: #194f9d; }
.release-card-title h3, .release-name h3 { font-size: 17px; color: #182d4b; }
.release-card-metrics span, .release-card-bottom, .release-status, .release-toolbar { font-size: 13px; color: #52627a; }
.release-card-bottom { flex-wrap: wrap; gap: 8px; text-align: left; min-height: 44px; }
.release-status { color: #98410b; }
.release-cost { color: #1958ba; }
.la-fields dd { font-size: 15px; color: #182d4b; }
.la-fields dt, .la-fields small, .la-card-foot > span { color: #52627a; font-size: 13px; }
.la-tabs button { min-height: 50px; font-size: 14px; }
.la-tabs button.active { background: #1659d5; color: #fff; }
.la-hint, .la-section-note, .la-coverage, .la-user-note { font-size: 13px; color: #52627a; line-height: 1.75; }
.la-person-link, .la-user-open strong, .la-person-item > strong, .la-held strong { font-size: 15px; }
.la-hypothesis { color: #895013; background: #fff1dc; font-size: 13px; }
.la-overview .eyebrow, .la-overview p, .la-metrics span, .la-metrics small { color: #e1ecff; font-size: 13px; }
.la-live { font-size: 13px; }
.nb-rank-row { min-height: 82px; height: auto; }
.nb-rank-user strong { font-size: 16px; }
.nb-rank-hero p, .nb-rank-meta, .nb-rank-footer, .nb-rank-caption, .nb-rank-score > small, .nb-rank-position small { color: #d5e3fa; font-size: 13px; }
.nb-purchase-profile p, .nb-purchase-heading span, .nb-purchase-summary, .nb-purchase-facts dt, .nb-purchase-facts small, .nb-purchase-marker, .nb-purchase-marker time, .nb-purchase-note, .nb-purchase-time { color: #52627a; font-size: 13px; }
.nb-purchase-facts dd { font-size: 16px; font-weight: 600; }
.vote-product-copy strong, .roster-person-copy strong { font-size: 16px; color: #182d4b; }
.vote-product-copy small, .vote-price small, .roster-person-copy small, .roster-point-head small, .roster-point-stats span, .vote-footnote, .vote-updated { font-size: 13px; color: #52627a; }
.vote-price { font-size: 18px; }
.vote-source, .vote-cost, .vote-source strong, .vote-source button, .vote-cost small { font-size: 13px; color: #52627a; }
.vote-cost strong { font-size: 15px; color: #214d91; }
.collection-vote { font-size: 14px; min-height: 42px; border-color: #cfdbeb; }
.vote-edit-cost, .roster-person-tools button, .roster-point-tools button { font-size: 13px; min-height: 36px; }
.roster-point-stats b { font-size: 16px; }
.roster-delivery.pending { color: #91500c; background: #fff0d9; }
.roster-delivery.delivered { color: #126c4b; background: #e2f3ea; }
.briefs-cover-top, .briefs-cover-bottom, .briefs-cover-sub { font-size: 13px; color: #eef5ff; }
.briefs-cover-cta { font-size: 14px; font-weight: 600; }
.briefs-badge { font-size: 13px; }
.sheet-header h2 { font-size: 21px; font-weight: 700; }
.sheet-header .icon-button { min-width: 44px; min-height: 44px; }
.sheet-content { font-size: 15px; }
.table, .market-sheet .table { font-size: 14px; }
.table th { font-size: 13px; color: #52627a; }
.serial, .market-sheet .serial { font-size: 13px; }
.detail-quick button { font-size: 14px; min-height: 44px; }
.metric-point-label { font-size: 13px !important; color: #52627a !important; }
.message p { font-size: 15px; color: #354b6a; line-height: 1.75; }
.message h3 { font-size: 16px; }
.ui-explanation { margin: 12px 0; border: 1px solid #dbe3ef; border-radius: 12px; background: #f8faff; color: #52627a; font-size: 14px; }
.ui-explanation > summary { cursor: pointer; padding: 11px 13px; min-height: 44px; font-size: 14px; font-weight: 600; color: #355784; }
.ui-explanation > p, .ui-explanation > .source-line { margin: 0; padding: 0 13px 13px; font-size: 14px; }
.ui-explanation[open] > summary { color: #1659d5; }
.page-foot { margin-top: 24px; }
.page-foot .legal-entry { font-size: 13px; min-height: 44px; color: #52627a; }
@media(max-width:390px) {
 .main { padding-left: 12px; padding-right: 12px; }
 .mobile-header h1 { font-size: 24px; }
 .header-actions .icon-button { width: 44px; height: 44px; }
 .analysis-tabs .pill { font-size: 14px; }
 .bottom-nav { padding-left: 3px; padding-right: 3px; }
 .bottom-nav button { font-size: 13px; }
 .cap-card { padding-left: 14px; padding-right: 14px; }
 .home-stats strong { font-size: 20px; }
 .home-stats span { font-size: 13px; }
 .rank-row { gap: 8px; padding: 14px 10px; }
 .rank-row strong, .product-name { font-size: 16px; }
 .rank-row > b { font-size: 17px; }
 .product { padding: 15px 10px; }
 .product-main .avatar { width: 38px; height: 42px; }
 .product-main > .avatar { margin-right: 8px; }
 .product-price { font-size: 17px; }
 .toolbar { flex-wrap: wrap; gap: 8px; }
 .toolbar > .search { flex-basis: calc(100% - 55px); margin-right: 0; }
 .toolbar select { width: 100%; }
 .mine-portfolio-grid strong { font-size: 24px; }
 .vote-price { font-size: 16px; }
}

.star { color: #62738d; opacity: 1; }
.star.selected { color: #1659d5; }
.star svg { stroke-width: 2; }

.briefs-cover-custom::before { background: transparent; }
.briefs-cover-title { font-weight: 700; letter-spacing: 0; }
.la-metrics > div { min-width: 0; }
.la-metrics b { font-size: clamp(20px,5.5vw,28px); font-variant-numeric: tabular-nums; }

/* Independent quantity / turnover rankings, using the same time controls. */
.ranked-hot-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; padding: 4px; margin: 0 0 12px; border-radius: 13px; background: #e6edf8; }
.ranked-hot-metrics .pill { font-size: 15px; min-height: 44px; border-radius: 10px; }
.ranked-hot-metrics .pill.active { background: #1659d5; color: #fff; }
.ranked-hot-quantity.is-amount b { font-size: 18px; }
.ranked-hot-quantity.is-amount { max-width: 44%; overflow-wrap: anywhere; }
.ranked-hot-buyers li > b small { display: block; text-align: right; }
.daily-briefs-cover, .briefs-cover-custom { background: transparent; border-color: #dbe3ef; box-shadow: none; }
.daily-briefs-cover:not(.briefs-cover-custom) { color: #182d4b; }
.daily-briefs-cover:not(.briefs-cover-custom) .briefs-cover-top,
.daily-briefs-cover:not(.briefs-cover-custom) .briefs-cover-bottom,
.daily-briefs-cover:not(.briefs-cover-custom) .briefs-cover-sub { color: #52627a; }
.briefs-cover-bottom { background: transparent; }
.briefs-cover-custom .briefs-cover-top, .briefs-cover-custom .briefs-cover-title,
.briefs-cover-custom .briefs-cover-sub, .briefs-cover-custom .briefs-cover-bottom > span:last-child { text-shadow: -1px 0 #15283a, 1px 0 #15283a, 0 -1px #15283a, 0 1px #15283a; }
@media(max-width:390px) { .ranked-hot-quantity.is-amount b { font-size: 17px; } }

/* Registration uses the existing login card and visual theme. */
.auth-switch { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:18px; color:#52627a; font-size:14px; }
.auth-switch .link-btn { min-height:40px; font-size:14px; }
.registration-agreement { display:flex; align-items:flex-start; gap:9px; margin:20px 0 8px; }
.registration-agreement input[type=checkbox] { flex:none; width:18px; height:18px; min-height:18px; margin:4px 0 0; padding:0; accent-color:var(--accent); }
.registration-agreement label { display:inline; margin:0; color:#52627a; font-size:13px; font-weight:400; line-height:1.9; }
.registration-agreement .legal-entry { display:inline; padding:0; color:var(--accent); font-size:13px; line-height:1.9; }
