:root {
  font-family: Inter, "Microsoft YaHei UI", system-ui, sans-serif;
  --lj-page: #f7f8f3;
  --lj-surface: #ffffff;
  --lj-surface-soft: #f0f4e9;
  --lj-border: #e3e8dd;
  --lj-text: #202722;
  --lj-green: #326b4e;
  --lj-muted: #788278;
  --lj-lime: #dff469;
  --lj-purple: #d8cafa;
  color: var(--lj-text);
  background: var(--lj-page);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 52% 16%, #fff 0, var(--lj-page) 55%); color: var(--lj-text); }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
.home-link { color: var(--lj-green); font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.home-link:hover { text-decoration: underline; }
.shell { max-width: 1220px; margin: auto; padding: 0 28px; }
.topbar { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--lj-border); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--lj-text); font-size: 21px; font-weight: 850; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lj-lime); color: #263420; font-size: 21px; }
.brand-divider { color: #acb6aa; font-weight: 400; margin: 0 3px; }
.brand-module { color: var(--lj-green); font-size: 19px; }
.subtitle { color: var(--lj-muted); font-size: 12px; margin: 3px 0 0 54px; }
.top-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-actions button { white-space: nowrap; }
.primary,.outline,.copy-btn,.icon-button { border-radius: 999px; padding: 10px 17px; font-weight: 750; transition: background .2s, transform .2s, border-color .2s; }
.primary { border: 1px solid var(--lj-green); background: var(--lj-green); color: #fff; box-shadow: 0 8px 18px #326b4e20; }
.primary:hover { background: #24563c; transform: translateY(-1px); }
.primary:disabled { opacity: .55; transform: none; }
.outline,.copy-btn,.icon-button { border: 1px solid var(--lj-border); background: #fff; color: var(--lj-green); }
.outline:hover,.copy-btn:hover,.icon-button:hover { background: var(--lj-surface-soft); border-color: #c5d8c5; }
#sync-status { color: var(--lj-muted); font-size: 12px; min-width: 148px; }
.tabs { display: flex; gap: 9px; overflow-x: auto; padding: 25px 0 18px; scrollbar-width: thin; }
.tabs button { min-width: 118px; padding: 12px 17px; border: 1px solid var(--lj-border); border-radius: 13px; background: #fff; color: #5d6b5f; text-align: left; font-size: 14px; font-weight: 800; white-space: nowrap; }
.tabs button.active { background: var(--lj-lime); border-color: var(--lj-lime); color: #203b2b; }
.tabs small { display: block; margin-top: 4px; font-size: 10px; font-weight: 550; }
.grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; }
.card { padding: 28px; border: 1px solid var(--lj-border); border-radius: 22px; background: var(--lj-surface); box-shadow: 0 12px 35px #29472b0b; }
.card h2 { margin: 0; color: var(--lj-text); font-size: 18px; }
.issue,.muted { color: var(--lj-muted); font-size: 12px; line-height: 1.7; }
.issue { margin-top: 8px; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--lj-border); }
.pick-row:first-of-type { margin-top: 14px; }
.pick-row:last-of-type { border-bottom: 0; }
.pick-label { min-width: 88px; color: var(--lj-green); font-size: 12px; font-weight: 750; }
.balls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ball { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lj-green); color: #fff; font-size: 12px; font-weight: 850; }
.ball.blue { background: var(--lj-purple); color: #42365c; }
.ball.digit { background: var(--lj-lime); color: #29422b; }
.copy-btn { padding: 7px 12px; font-size: 11px; white-space: nowrap; }
.pick-row .copy-btn { margin-left: auto; }
.explain { margin: 16px 0 0; color: var(--lj-muted); font-size: 12px; line-height: 1.8; }
.notice { margin-top: 15px; padding: 12px 15px; border-left: 3px solid var(--lj-green); border-radius: 0 10px 10px 0; background: var(--lj-surface-soft); color: #526854; font-size: 12px; line-height: 1.7; }
.metric { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--lj-border); color: var(--lj-muted); font-size: 12px; }
.metric strong { color: var(--lj-green); font-size: 15px; }
.hot { margin-top: 21px; color: var(--lj-muted); font-size: 12px; line-height: 2.1; }
.hot b { color: var(--lj-green); }
.plan,.review,.audit { margin-top: 18px; }
.plan-head,.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan-head p { margin: 6px 0 0; color: var(--lj-muted); font-size: 12px; }
.plan-actions { display: flex; align-items: center; gap: 14px; }
.plan-actions strong { color: var(--lj-green); font-size: 20px; white-space: nowrap; }
.plan-body { margin-top: 26px; }
.zone { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.zone+.zone { margin-top: 13px; }
.zone-label { min-width: 56px; color: var(--lj-muted); font-size: 12px; }
.plan-divider { margin: 0 4px; color: var(--lj-green); font-weight: 800; }
.theory { margin-top: 20px; color: var(--lj-green); font-size: 12px; font-weight: 700; }
.review-empty { margin-top: 18px; color: var(--lj-muted); font-size: 13px; line-height: 1.8; }
.review-row { display: grid; grid-template-columns: 160px 1fr; gap: 15px; margin-top: 20px; }
.review-actual { color: var(--lj-muted); font-size: 12px; }
.review-actual strong { display: block; margin-bottom: 9px; color: var(--lj-green); font-size: 13px; }
.review-results { display: grid; gap: 8px; }
.result { display: flex; justify-content: space-between; gap: 10px; color: #5e7061; font-size: 12px; }
.result b,.result .exact { color: var(--lj-green); }
.review-summary { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--lj-surface-soft); color: #516a55; font-size: 12px; line-height: 1.7; }
.review-head small { color: var(--lj-muted); font-size: 11px; }
.audit-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 18px; }
.audit-grid div { padding: 13px; border-radius: 12px; background: var(--lj-surface-soft); color: var(--lj-muted); font-size: 12px; }
.audit-grid strong { display: block; margin-top: 6px; color: var(--lj-green); font-size: 19px; }
.source-note { color: var(--lj-muted); font-size: 11px; line-height: 1.7; }
.source-note a { color: var(--lj-green); }
.waiting { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 25px; text-align: center; }
.waiting h2 { font-size: 23px; }
.waiting p { margin: 0; color: var(--lj-muted); line-height: 1.8; }
.waiting-icon { color: var(--lj-green); font-size: 34px; }
.waiting .balls { justify-content: center; margin-top: 14px; }
footer { padding: 28px 0 38px; color: #9da69b; font-size: 11px; line-height: 1.8; }
dialog { width: min(760px,calc(100vw - 30px)); max-height: 82vh; padding: 0; border: 1px solid var(--lj-border); border-radius: 20px; background: #fff; color: var(--lj-text); box-shadow: 0 30px 90px #1d3f2a35; }
dialog::backdrop { background: #233c2d80; }
.dialog-head { position: sticky; top: 0; display: flex; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--lj-border); background: #fff; }
.dialog-head h2 { margin: 0; font-size: 20px; }
.dialog-head p { margin: 4px 0 0; color: var(--lj-muted); font-size: 12px; }
.icon-button { padding: 4px 11px; font-size: 20px; line-height: 1; }
#history-list { max-height: 60vh; overflow-y: auto; padding: 0 24px; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--lj-border); }
.history-row .balls { justify-content: flex-end; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; padding: 14px; }
.pagination button { padding: 7px 12px; font-size: 12px; }
.pagination span { color: var(--lj-muted); font-size: 12px; }
@media(max-width:850px) { .grid { grid-template-columns: 1fr; } .topbar { align-items: flex-start; flex-direction: column; padding: 18px 0; } .card { padding: 22px; } .review-row { grid-template-columns: 1fr; } .plan-head { flex-direction: column; } .plan-actions { width: 100%; justify-content: space-between; } }
@media(max-width:560px) { .shell { padding: 0 13px; } .top-actions { gap: 7px; } .top-actions button { padding: 8px 10px; font-size: 11px; } .brand { font-size: 18px; } .brand-mark { width: 38px; height: 38px; } .brand-module { font-size: 16px; } .tabs button { min-width: 94px; padding: 9px 12px; } .pick-row { gap: 5px; } .pick-label { min-width: 68px; font-size: 11px; } .ball { width: 26px; height: 26px; font-size: 10px; } .balls { gap: 3px; } .copy-btn { padding: 6px 7px; } .history-row { align-items: flex-start; flex-direction: column; } .history-row .balls { justify-content: flex-start; } .audit-grid { grid-template-columns: repeat(2,1fr); } }
