/* 网页版补充样式：没有 macOS 标题栏；窄屏（手机）布局 */
body.web .drag { height: 16px; }
body.web .page-head { padding-top: 22px; }
#menu-btn { display: none; }
.code-inline { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; word-break: break-all; }
.token-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.token-row .grow { flex: 1; min-width: 160px; }
.token-row .scope-sel { width: auto; padding: 3px 6px; font-size: 12px; }
.change-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.change-row:last-child { border-bottom: 0; }
.change-row .grow { flex: 1; min-width: 0; }
.change-row.undone { opacity: .55; }
.change-lines { font-size: 12px; color: var(--muted); margin-top: 2px; word-break: break-word; }
.ch-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ch-head .btn { margin-left: auto; }
.change-items { margin-top: 4px; font-size: 12.5px; }
.change-items .ci { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; border-top: 1px dashed var(--line2); }
.change-items .ci:first-child { border-top: 0; }
.change-items .ci-l { flex: 1; min-width: 0; word-break: break-word; }
.change-items .ci a { flex-shrink: 0; font-size: 12px; }
.change-items .ci.undone .ci-l { text-decoration: line-through; color: var(--faint); }
.change-items > a { display: inline-block; margin-top: 4px; font-size: 12px; }
.ver-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ver-row b { font-size: 14px; }
.new-ver { color: var(--accent); font-weight: 600; }
.ver-notes { white-space: pre-line; margin-top: 6px; font-size: 12px; }
label.check { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
label.check input { width: auto; margin: 0; }
#update-bar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: var(--r-lg); padding: 6px 8px 6px 14px; font-size: 13px; }
.new-token { background: rgba(25,179,107,.12); border: 1px solid var(--down); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }

@media (max-width: 760px) {
  html, body { height: auto; min-height: 100%; }
  #app { display: block; height: auto; }
  #menu-btn { display: block; position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 10px; z-index: 40; width: 40px; height: 40px; border-radius: 10px;
    background: var(--panel); border: 1px solid var(--line); font-size: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
  #sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 82vw; max-width: 300px; z-index: 35; transform: translateX(-105%); transition: transform .2s; box-shadow: 10px 0 40px rgba(0,0,0,.4); padding-top: env(safe-area-inset-top); }
  body.nav-open #sidebar { transform: none; }
  body.web .drag { height: 56px; }
  main { padding: 0 12px 60px; overflow: visible; }
  body.web .page-head { position: static; padding: calc(62px + env(safe-area-inset-top)) 0 10px; }
  .page-head h1 { font-size: 19px; flex-wrap: wrap; }
  .legend { margin-left: 0; flex-wrap: wrap; }
  .crow { grid-template-columns: 1fr; }
  .crow-h { flex-direction: row; align-items: center; gap: 6px; padding: 1px 2px 6px; border-right: 0; border-bottom: 1px dashed var(--line); }
  .crow-tools { opacity: 1; margin: 0 0 0 auto; }
  .crow:not(:last-child)::after { left: calc(50% - 5px); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segc button { padding: 0 9px; }
  .fdetail { grid-template-columns: 1fr; }
  .ctbl-bar .faint { display: none; }
  .ph-tools { margin-left: 0; }
  .radar { grid-template-columns: 1fr; }
  .watch-list { max-height: 38vh; overflow-y: auto; -webkit-overflow-scrolling: touch; position: static; }
  .rating-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  table.cmp { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.cmp th { position: static; }
  #drawer { width: 100vw; z-index: 45; }
  #drawer-body { padding: 18px 14px 60px; }
  .modal-card { width: 96vw; padding: 16px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picks { grid-template-columns: 1fr; }
  .vr3 { gap: 6px 10px; }
  .cg-b { padding-left: 12px; }
  .tbl-wrap table.cmp { display: table; }
  .rej-card { width: 96vw; }
}

/* 登录页 */
body.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; }
.login-card .brand { font-size: 20px; padding: 0 0 10px; }
.login-card .field { display: flex; flex-direction: column; gap: 4px; margin: 4px 0; }
.login-card label { color: var(--muted); font-size: 12.5px; }
.login-card .btn { margin-top: 10px; padding: 9px 12px; }
.login-card .tabs { display: flex; gap: 16px; margin-bottom: 8px; }
.login-card .tabs a { color: var(--muted); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.login-card .tabs a.on { color: var(--text); border-color: var(--accent); }
.login-card .err { color: var(--up); min-height: 18px; font-size: 13px; }
.login-card .note { font-size: 12px; margin-top: 10px; line-height: 1.6; }
.upd-warn { margin-top: 8px; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.6; color: var(--up); background: color-mix(in srgb, var(--up) 8%, transparent); white-space: pre-wrap; word-break: break-all; }
.upd-setup { margin-top: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; }
.upd-setup ol { margin: 6px 0 8px 18px; padding: 0; }
.upd-setup li { margin: 4px 0; }
.upd-setup li .btn { margin: 0 4px; vertical-align: 1px; }
.upd-setup pre.code { white-space: pre-wrap; word-break: break-all; font-size: 11px; margin: 4px 0 6px; }
