/* USB工作台：炭黑底、薄荷绿强调、可辨识状态；不加载远程字体或资源。 */
:root { color-scheme: dark; --bg: #101311; --panel: #181d19; --line: #303830; --text: #edf1e9; --muted: #a0aaa0; --accent: #c2f17c; --warning: #ebc27d; --error: #ffaaa1; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 14px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .38; }
button:focus-visible, a:focus-visible, input:focus-visible, .file-picker:has(+ input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 5px; }
.page { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.mono, .eyebrow, .brand, .step-number, footer, code, .watch-topline, .watch-bottomline { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: var(--bg); border-radius: 7px; font-size: 22px; letter-spacing: -2px; padding-right: 3px; }
.brand-suffix { color: var(--muted); margin-left: -6px; }
.back-link { color: var(--muted); font-size: 13px; }
.back-link span { margin-left: 14px; color: var(--text); }
.intro { padding: 56px 0 42px; position: relative; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 11px; letter-spacing: 1.7px; margin: 0 0 21px; }
.small-square { width: 6px; height: 6px; background: var(--accent); }
.preview-label { border: 1px solid var(--line); border-radius: 4px; padding: 1px 8px; color: var(--muted); font-family: 'PingFang SC', sans-serif; letter-spacing: 0; margin-left: 4px; }
h1 { font-size: clamp(37px, 5.2vw, 60px); line-height: 1.25; letter-spacing: -2px; margin: 0; font-weight: 600; }
h1 span { color: var(--accent); }
.intro-copy { position: absolute; left: 56%; bottom: 72px; font-size: 16px; line-height: 1.9; color: var(--muted); margin: 0; }
.assurances { display: flex; gap: 22px; margin-top: 26px; color: var(--muted); font-size: 12px; }
.assurances span::before { content: '✓'; color: var(--accent); margin-right: 6px; }
.workspace { display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.installer { background: var(--panel); padding: 23px 30px 30px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.panel-heading h2 { font-size: 14px; font-weight: 500; margin: 0; }
.panel-heading .mono { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.step { display: flex; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.step-number { color: #748172; font-size: 12px; padding-top: 3px; }
.step-body { min-width: 0; flex: 1; }
.step h3 { margin: 0; font-size: 16px; font-weight: 500; }
.step p { margin: 6px 0 14px; color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 18px; align-items: center; }
.button { border: 1px solid var(--line); border-radius: 7px; padding: 10px 18px; color: var(--text); background: transparent; font-weight: 500; transition: border-color .15s, background .15s; }
.button span { margin-left: 24px; }
.secondary:hover:enabled { border-color: var(--muted); background: #222a22; }
.primary { width: 100%; display: flex; justify-content: space-between; align-items: center; background: var(--accent); color: #192016; border-color: var(--accent); padding: 13px 18px; }
.primary:hover:enabled { background: #d3ff92; }
.text-button { padding: 7px 0; background: none; border: none; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.step .device-state { margin-bottom: 0; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
[data-tone='success'] { color: var(--accent) !important; }
[data-tone='warning'] { color: var(--warning) !important; }
[data-tone='error'] { color: var(--error) !important; }
.file-picker { display: flex; align-items: center; gap: 13px; border: 1px dashed #4a5749; border-radius: 8px; padding: 16px; cursor: pointer; }
.file-picker:hover { border-color: var(--accent); }
.file-picker b { font-weight: 400; font-size: 13px; display: block; word-break: break-all; }
.file-picker small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.file-icon { font-size: 23px; color: var(--accent); }
.file-type { margin-left: auto; font-size: 9px; color: var(--muted); }
#package-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-picker:has(+ input:disabled) { cursor: not-allowed; opacity: .5; }
.step .file-result { font-size: 11px; margin-bottom: 0; }
/* 本机密钥：指纹用等宽字体分组显示，方便和手表屏幕上的字符逐个核对。 */
.key-facts { margin: 0 0 14px; }
.key-facts div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 9px 0; font-size: 11px; }
.key-facts div:last-child { border-bottom: 1px solid var(--line); }
.key-facts dt { color: var(--muted); flex-shrink: 0; }
.key-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
#key-fingerprint { letter-spacing: .6px; color: var(--accent); }
.key-hint { font-size: 11px; color: var(--muted); margin: 12px 0 0; overflow-wrap: anywhere; }
/* 已登记公钥列表：指纹等宽，删除按钮靠右。 */
.key-list-title { font-size: 11px; color: var(--muted); margin: 16px 0 6px; }
.key-list { list-style: none; margin: 0; padding: 0; }
.key-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 11px; }
.key-list li span { overflow-wrap: anywhere; }
.key-list li button { flex-shrink: 0; }
.last-step { border-bottom: none; padding-bottom: 0; }
.confirmation { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11px; margin: 13px 0 18px; cursor: pointer; }
.confirmation input { margin: 5px 0 0; accent-color: var(--accent); }
.confirmation small { color: #7f8c7e; font-size: 10px; }
.step .install-hint { font-size: 11px; margin: 12px 0 0; }
#progress-area, #backup-progress-area, #restore-progress-area { margin-top: 18px; }
.progress-caption { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); }
progress { width: 100%; height: 5px; border: 0; border-radius: 4px; accent-color: var(--accent); margin: 8px 0 0; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
.preview-panel { padding: 23px 26px 28px; background: #141814; border-left: 1px solid var(--line); }
.watch-stage { height: 360px; position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.watch-strap { position: absolute; z-index: 0; width: 105px; height: 125px; background: repeating-linear-gradient(90deg, #232d22 0 5px, #1d261c 5px 7px); border: 1px solid #354333; }
.top-strap { top: -24px; border-radius: 20px 20px 0 0; }
.bottom-strap { bottom: -24px; border-radius: 0 0 20px 20px; }
.watch-body { position: relative; z-index: 1; width: 192px; height: 238px; border: 3px solid #616a5b; border-radius: 46px; padding: 8px; background: #333b30; box-shadow: 0 20px 32px #0008, inset 0 0 0 2px #252c23; }
.watch-crown { position: absolute; right: -8px; top: 61px; width: 5px; height: 26px; border-radius: 0 3px 3px 0; background: #727c69; }
.watch-screen { height: 100%; border-radius: 34px; padding: 18px 15px; background: #090d09; overflow: hidden; }
.watch-topline { display: flex; justify-content: space-between; font-size: 6px; letter-spacing: .7px; color: #a5b59b; }
.app-glyph { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 38px; width: 38px; margin: 28px 0 12px; }
.app-glyph span { background: var(--accent); border-radius: 3px; }
.app-glyph span:nth-child(2) { opacity: .65; }
.app-glyph span:nth-child(3) { opacity: .35; }
.app-glyph span:nth-child(4) { border-radius: 3px 3px 12px 3px; }
.watch-screen h3 { font-size: 18px; line-height: 1.5; margin: 0; font-weight: 500; max-height: 54px; overflow: hidden; overflow-wrap: anywhere; }
.watch-screen p { font-size: 8px; color: var(--muted); margin: 6px 0 0; }
.watch-bottomline { position: absolute; bottom: 23px; left: 25px; font-size: 6px; color: #708468; letter-spacing: 1px; }
.watch-bottomline span { font-size: 10px; margin-right: 5px; }
.preview-caption { text-align: center; color: #82907e; font-size: 10px; margin: 13px 0 24px; }
.package-meta { margin: 0; }
.package-meta div { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #252e25; padding: 10px 0; font-size: 11px; }
.package-meta dt { color: var(--muted); flex-shrink: 0; }
.package-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.signature-note { color: #82907e; font-size: 10px; line-height: 1.8; border-top: 1px solid #252e25; margin: 0; padding-top: 15px; }
.notice { background: #192018; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; padding: 16px 20px; color: var(--muted); margin-top: 20px; overflow-wrap: anywhere; }
.boundaries { padding: 38px 0 42px; }
.boundaries h2 { font-size: 14px; font-weight: 500; margin: 0 0 24px; }
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
.boundary-grid .mono { font-size: 9px; color: #7a8b73; letter-spacing: 1.2px; }
.boundary-grid h3 { font-size: 12px; font-weight: 500; margin: 8px 0; }
.boundary-grid p { color: var(--muted); font-size: 11px; line-height: 1.9; margin: 0; }
footer { border-top: 1px solid var(--line); padding: 22px 0 35px; display: flex; justify-content: space-between; gap: 20px; font-size: 9px; color: #85917f; letter-spacing: .5px; }
.footer-divider { margin: 0 8px; color: var(--line); }
.footer-legal { margin: -20px 0 34px; color: #7d8a76; font-size: 10px; line-height: 1.9; letter-spacing: .2px; max-width: 96ch; }
.footer-legal b { color: #a9b79c; font-weight: 600; }
@media (max-width: 760px) {
  .page { padding: 0 22px; }
  .topbar { height: 74px; }
  .intro { padding: 38px 0 30px; }
  .intro-copy { position: static; margin-top: 20px; font-size: 14px; }
  .desktop-break { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .installer { padding: 20px; }
  .step { gap: 13px; }
  .preview-panel { border-left: 0; border-top: 1px solid var(--line); padding: 20px; }
  .watch-stage { height: 310px; }
  .watch-strap { height: 100px; }
  .boundary-grid { grid-template-columns: 1fr; gap: 22px; }
  footer { flex-direction: column; gap: 10px; }
}
@media (max-width: 380px) {
  .page { padding: 0 15px; }
  .brand { font-size: 10px; gap: 7px; }
  .brand-suffix { display: none; }
  .assurances { gap: 12px; font-size: 10px; }
  .file-type { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
