/* 06 Profile。结构与数值按 Quvix Flow.dc.html:1090-1387。
 * 分享弹窗与卡面已拆到 css/share.css(由 js/view/share.js 消费)。
 *
 * 🔴 这一屏的分栏方向与其余屏**相反**:248px 左导航 + 主区,而不是主区 + 328px 右栏。
 *    原因是它有四个子页(Overview / Bet history / Share cards / Settings),
 *    子导航必须常驻;塞进右栏会读成"附属信息"。所以它不复用 chrome.css 的 .shell。 */

.prof {
  flex: 1;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 1px;
  min-width: 1180px;
  background: var(--border);
}
.prof__side {
  background: var(--bg);
  padding: 22px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.prof__main {
  background: var(--bg);
  padding: 22px 24px 40px;
  min-width: 0;
}
.prof__pad {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ===== 左栏身份区 ===== */
.prof__idcol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px;
}
.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 22px;
}
.avatar--md {
  width: 38px;
  height: 38px;
  font-size: 13px;
}
.prof__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prof__namerow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prof__joined {
  font-size: 9.5px;
  color: var(--muted2);
}
.btn-sm {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 9px;
  cursor: pointer;
  font-size: 10.5px;
  color: var(--muted);
  transition: all 0.14s;
}
.btn-sm:hover {
  border-color: var(--lime-dim);
  color: var(--text);
}
.btn-outline {
  background: none;
  border: 1px solid var(--border-str);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--text2);
  transition: all 0.14s;
}
.btn-outline:hover {
  border-color: var(--lime-dim);
  color: var(--text);
}
.btn-lime {
  background: var(--lime);
  border: none;
  border-radius: 6px;
  padding: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-lime);
  transition: background 0.14s;
}
.btn-lime:hover {
  background: var(--lime-bright);
}
.prof__input {
  background: var(--input);
  border: 1px solid var(--border-str);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  width: 100%;
}
.prof__input:focus {
  border-color: var(--lime-dim);
}

/* ===== 左栏子导航 =====
 * 2px 左侧竖条标记当前项。用左条而不是整块底色:248px 窄栏里整块高亮会显得过重,
 * 把视线从右侧主区抢走。 */
.prof__tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 8px 0;
}
.prof__tab {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.14s;
}
.prof__tab:hover {
  color: var(--text);
}
.prof__tab.is-active {
  background: var(--lime-bg2);
  border-left-color: var(--lime);
  color: var(--text);
}
.prof__tabcount {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--muted2);
}
.prof__slug {
  font-size: 11px;
  color: var(--lime);
  word-break: break-all;
}
.prof__foot {
  padding: 0 18px;
  margin-top: auto;
}

/* ===== 你 vs 模型 ===== */
.vs {
  border: 1px solid var(--lime-dim);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--grad1), var(--panel));
  padding: 18px 20px 20px;
  margin-bottom: 18px;
}
.vs__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.vs__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}
.vs__verdict {
  font-size: 13px;
  font-weight: 600;
}
.vs__grid {
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  gap: 20px;
  align-items: center;
}
.vs__col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.vs__who {
  display: flex;
  align-items: center;
  gap: 9px;
}
.vs__whotext {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vs__whoname {
  font-size: 13px;
  font-weight: 600;
}
.vs__whorate {
  font-size: 10px;
  color: var(--muted);
}
.vs__pnl {
  font-size: 30px;
  font-weight: 600;
}
.vs__track {
  height: 7px;
  background: var(--card2);
  border-radius: 4px;
  overflow: hidden;
}
.vs__fill {
  height: 100%;
  border-radius: 4px;
}
.vs__fill--you {
  background: var(--lime);
}
.vs__fill--ai {
  background: var(--blue);
}
.vs__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.vs__days {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
}
.vs__dayslabel {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted2);
  text-align: center;
}
.vs__aiavatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lime-bg);
  border: 1px solid var(--lime-dim);
  font-size: 11px;
  font-weight: 600;
  color: var(--lime);
}
.vs__note {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

/* ===== 按盘口聚合 ===== */
.aggs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.agg {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.agg__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.agg__label {
  font-size: 12.5px;
  font-weight: 600;
}
.agg__settled {
  font-size: 9.5px;
  color: var(--muted2);
}
.agg__pnl {
  font-size: 22px;
  font-weight: 600;
}
.agg__bar {
  display: flex;
  align-items: center;
  gap: 9px;
}
.agg__track {
  flex: 1;
  height: 5px;
  background: var(--card3);
  border-radius: 3px;
  overflow: hidden;
}
.agg__fill {
  height: 100%;
  background: var(--lime-dim);
  border-radius: 3px;
}
.agg__rate {
  font-size: 10.5px;
  color: var(--muted);
}
.tile__track {
  height: 5px;
  background: var(--card3);
  border-radius: 3px;
  overflow: hidden;
}
.tile__fill {
  height: 100%;
  background: var(--lime);
  border-radius: 3px;
}

/* ===== 投注历史 ===== */
.hist__head {
  grid-template-columns: 22px 62px minmax(0, 1fr) 150px 58px 52px 62px 74px;
  gap: 12px;
  padding: 10px 14px;
}
.hist__row {
  display: grid;
  grid-template-columns: 22px 62px minmax(0, 1fr) 150px 58px 52px 62px 74px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: none;
  border-bottom: 1px solid var(--hair);
  transition: background 0.14s;
  cursor: pointer;
  background: var(--row);
  width: 100%;
  text-align: left;
  color: var(--text);
}
.hist__row:hover {
  background: var(--hover);
}
.hist__row.is-picked {
  background: var(--lime-bg2);
}
/* 未结算的行不能选:分享卡只允许已结算结果,否则可以挑一手好牌当战绩发出去。 */
.hist__row.is-open {
  cursor: not-allowed;
}
.hist__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid var(--border-str2);
  background: var(--row);
  color: transparent;
  font-size: 10px;
  font-weight: 600;
}
.hist__row.is-picked .hist__box {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--on-lime);
}
.hist__row.is-open .hist__box {
  border-color: var(--border2);
  background: var(--modal);
  color: var(--border-str2);
}
.hist__date {
  font-size: 11px;
  color: var(--muted);
}
.hist__fixture {
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist__pick {
  font-size: 11px;
  color: var(--text2);
}
.hist__num {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.hist__pnl {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.hist__selbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--lime-bg2);
  border-top: 1px solid var(--lime-dim);
}
.hist__selcount {
  font-size: 11.5px;
  color: var(--lime);
}

/* ===== 分享卡列表 ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card-share {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.card-share__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.card-share__scope {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
  color: var(--lime);
  background: var(--lime-bg);
}
.card-share__views {
  font-size: 9.5px;
  color: var(--muted2);
}
.card-share__url {
  font-size: 11.5px;
  color: var(--text2);
  word-break: break-all;
}
.card-share__created {
  font-size: 10px;
  color: var(--muted2);
}
.newcard {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.newcard__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.newcard__title {
  font-size: 13px;
  font-weight: 600;
}
.newcard__body {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}
.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.rule {
  display: flex;
  gap: 9px;
}
.rule__n {
  font-size: 10px;
  color: var(--lime);
}
.rule__text {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ===== 设置 ===== */
.settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}
.setcard {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 16px 18px;
}
.setrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.setrow--split {
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.setrow__col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.setrow__title {
  font-size: 12.5px;
  font-weight: 500;
}
.setrow__body {
  font-size: 11px;
  color: var(--muted);
}
.setrow__note {
  font-size: 10.5px;
  color: var(--muted2);
}
.setrow__spacer {
  flex: 1;
}

.switch {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  border-radius: 11px;
  border: 1px solid var(--border3);
  background: var(--card2);
  cursor: pointer;
  transition: all 0.16s;
}
.switch.is-on {
  border-color: var(--lime-dim);
  background: var(--sw-on);
}
.switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted2);
  transition: left 0.16s;
}
.switch.is-on .switch__knob {
  left: 17px;
  background: var(--lime);
}

/* 危险区。整块换成 danger 令牌而不是只给按钮描红 —— 删账号不该和"再来一次"长得一样。 */
.danger {
  border: 1px solid var(--danger-bd);
  border-radius: 10px;
  background: var(--danger-bg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.danger__title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--red);
}
.danger__btn {
  flex: none;
  background: none;
  border: 1px solid var(--danger-bd2);
  border-radius: 6px;
  padding: 8px 13px;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--red);
  transition: background 0.14s;
}
.danger__btn:hover {
  background: var(--danger-hov);
}


/* ===== CLV Tracker(06 新 tab,2026-08-11 MVP)===== */

/* 录入卡:自适应网格,窄容器自动折行;Match 独占一整行(队名长) */
.clv__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}
.clv__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.clv__field--wide {
  grid-column: 1 / -1;
}
.clv__field--btn {
  justify-content: flex-end;
}

/* 注单列表:8 列(日期/对阵/选择/拿到价/收盘价/CLV/结果/删除) */
.clv__head {
  grid-template-columns: 74px minmax(0, 1fr) 128px 52px 52px 96px 62px 30px;
  gap: 10px;
  padding: 10px 14px;
}
.clv__row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 128px 52px 52px 96px 62px 30px;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hair);
  background: var(--row);
}
.clv__row:last-child {
  border-bottom: none;
}
.clv__date {
  font-size: 11px;
  color: var(--muted);
}
.clv__fixture {
  font-size: 12.5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clv__pick {
  font-size: 11px;
  color: var(--muted);
}
.clv__num {
  font-size: 12px;
  text-align: right;
}
/* after-kickoff 标记:幸存者偏差的可见证据,不许淡到看不见 */
.clv__late {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-bg);
}
.clv__book {
  margin-left: 6px;
  font-size: 10px;
  color: var(--muted2);
}
.clv__del {
  padding: 2px 6px;
  font-size: 11px;
  color: var(--muted2);
}
.clv__del:hover {
  color: var(--red);
}

/* 周趋势:label + 条 + 均值 + 注数 */
.clv__trend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.clv__trendrow {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 72px 28px;
  gap: 10px;
  align-items: center;
}
.clv__trendweek {
  font-size: 10.5px;
  color: var(--muted);
}
.clv__trendtrack {
  height: 7px;
  background: var(--card3);
  border-radius: 3px;
  overflow: hidden;
}
.clv__trendfill {
  height: 100%;
  border-radius: 3px;
}
.clv__trendfill.is-pos {
  background: var(--lime);
}
.clv__trendfill.is-neg {
  background: var(--red);
}
.clv__trendval {
  font-size: 11px;
  text-align: right;
}
.clv__trendn {
  font-size: 10px;
  color: var(--muted2);
  text-align: right;
}

/* CLV 场次搜索下拉(纯 DOM 过滤,重画时恒画成收起态) */
.clv__dd {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--modal);
  border: 1px solid var(--border-str);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.clv__ddhead {
  display: block;
  position: sticky;
  top: 0;
  padding: 6px 12px 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  background: var(--modal);
  border-bottom: 1px solid var(--hair);
}
.clv__ddopt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid var(--hair);
  background: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}
.clv__ddopt:hover {
  background: var(--hover);
}
.clv__ddgroup:last-of-type .clv__ddopt:last-child {
  border-bottom: none;
}
.clv__ddname {
  font-size: 12.5px;
  font-weight: 500;
}
.clv__ddmeta {
  font-size: 10px;
  color: var(--muted2);
}
.clv__ddempty {
  margin: 0;
  padding: 14px 12px;
  font-size: 12px;
  color: var(--muted);
}

/* 🔴 .clv__ddopt 的 display:flex 会压过 UA 样式表的 [hidden]{display:none}
 * (作者样式恒胜 UA,与 specificity 无关)—— 过滤靠 hidden 属性,必须显式补回。 */
.clv__dd [hidden] {
  display: none !important;
}
