.nav { display: flex; gap: 8px; margin-left: 8px; }
.nav-btn {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.nav-btn b { font-family: var(--mono); padding-left: 4px; color: var(--gold2); }
.nav-btn:hover { color: var(--text); border-color: var(--gold); }
.nav-btn.on { background: var(--chip); color: var(--text); border-color: var(--gold); }
#mine-page { display: none; flex: 1; min-height: 0; overflow: hidden; padding: 8px 18px 16px; flex-direction: column; }
body.view-mine #mine-page { display: flex; }
body.view-mine .kpis, body.view-mine .work, body.view-mine footer { display: none; }
.mine-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 2px 0 8px; flex-shrink: 0; }
.mine-head h2 { margin: 0; font-size: 16px; }
.mine-head .sub { color: var(--muted); font-size: 12px; max-width: 900px; line-height: 1.5; }
.mine-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 14px; padding: 0 0 8px; flex-shrink: 0;
}
.mine-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mine-tools input, .mine-tools select {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 6px; padding: 7px 10px; font-size: 13px;
}
.mine-tools input { min-width: 180px; }
.mine-wrap { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.mine-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mine-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: #171c25; color: var(--muted); font-weight: 600; font-size: 11px;
  letter-spacing: .06em; text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.mine-table thead th.num, .mine-table td.num { text-align: right; font-family: var(--mono); }
.mine-table td { padding: 7px 10px; border-bottom: 1px solid #1a1f29; vertical-align: middle; }
.mine-row { cursor: pointer; }
.mine-row:hover { background: #1a2130; }
.mine-row.hot-pos { background: #152318; box-shadow: inset 3px 0 0 var(--green); }
.mine-row.hot-pos:hover { background: #1a2c1e; }
.mine-row.hot-sig { background: #231e12; box-shadow: inset 3px 0 0 var(--gold); }
.mine-row.hot-sig:hover { background: #2a2416; }
.mine-row.open { background: #1a2130; }
.col-name .nm { font-weight: 600; font-size: 13px; line-height: 1.35; }
.col-name .m-stats { display: none; color: var(--muted); font-size: 11px; margin-top: 3px; font-family: var(--mono); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--line); white-space: nowrap;
}
.badge.wait { color: var(--muted); background: var(--chip); }
.badge.sig { color: #1a1408; background: var(--gold2); border-color: var(--gold); }
.badge.pos { color: #0b1a12; background: var(--green); border-color: #2ea870; }
.badge-why { color: var(--dim); font-size: 11px; margin-left: 6px; }
.hot-sig .badge-why, .hot-pos .badge-why { color: var(--muted); }
.mine-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
button.btn.tiny { padding: 4px 8px; font-size: 12px; }
button.watch-btn {
  border: 1px solid var(--line2); background: var(--panel2); color: var(--gold2);
  padding: 4px 8px; border-radius: 6px; cursor: pointer; font-size: 12px; white-space: nowrap;
}
button.watch-btn:hover { border-color: var(--gold); }
button.watch-btn.on { background: #2a2314; color: var(--muted); }
tr td .watch-btn { position: relative; z-index: 2; }
.mine-exp td { background: var(--bg); padding: 0; border-bottom: 1px solid var(--line); }
.exp-box { padding: 10px 14px 14px; display: grid; gap: 10px; }
.exp-rule { color: #c9d2de; font-size: 13px; line-height: 1.55; }
.exp-filters { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; }
.pill-ok { color: var(--green); }
.pill-no { color: var(--red); }
.pill-wait { color: var(--gold2); }
.pos-box { font-size: 13px; line-height: 1.5; background: #1e2a1c; border: 1px solid rgba(224,177,90,.35); border-radius: 8px; padding: 8px 10px; }
.replay-box { font-size: 12px; color: var(--muted); line-height: 1.5; }
.exp-box .mine-actions { justify-content: flex-start; margin-top: 2px; }

.mine-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 820px) {
  body.view-mine .runbox,
  body.view-mine header .actions { display: none; }
  body.view-mine header { gap: 8px; padding: 8px 10px; }
  body.view-mine .brand { min-width: 0; }
  body.view-mine .nav { margin-left: auto; }
  #mine-page { padding: 8px 10px 14px; }
  .mine-tools input { min-width: 0; width: 140px; flex: 1; }
  .col-name .m-stats { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mine-table thead { display: none; }
  .mine-table, .mine-table tbody { display: block; width: 100%; }
  .mine-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name live" "actions actions";
    gap: 4px 8px; padding: 8px 10px;
    border-bottom: 1px solid #1a1f29;
    align-items: start;
  }
  .mine-row td { border: 0; padding: 0; }
  .col-name { grid-area: name; }
  .col-live { grid-area: live; text-align: right; }
  .col-live .badge-why { display: block; margin: 3px 0 0; }
  .col-actions { grid-area: actions; }
  .col-actions .mine-actions { justify-content: flex-start; }
  .col-pf, .col-n, .col-ppf, .col-r, .col-time { display: none; }
  .col-name .m-stats { display: block; }
  .mine-exp, .mine-exp td { display: block; width: 100%; }
  .mine-row.hot-pos, .mine-row.hot-sig { box-shadow: inset 3px 0 0 var(--gold); }
  .mine-row.hot-pos { box-shadow: inset 3px 0 0 var(--green); }
}
