:root, :host {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #152642;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f3f6fc; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 1px solid transparent; border-radius: 8px; padding: 11px 23px; font-weight: 600; }
button:disabled { opacity: .48; cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid #7598ff; outline-offset: 4px; }
a { color: #2852d0; text-underline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.35; font-weight: 650; letter-spacing: -.8px; }
h2 { font-size: 19px; font-weight: 650; }
h3 { font-size: 17px; }
.page-header { height: 86px; max-width: 1120px; margin: auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #152642; text-decoration: none; font-size: 18px; font-weight: 650; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px 10px 10px 2px; background: #3563e9; color: white; font-size: 17px; }
.header-note, .muted, .hint, .footer-note { color: #5b6d85; }
.header-note { font-size: 13px; }
[data-n="desktop-body"] .page-header { height: 56px; padding: 0 24px; }
[data-n="desktop-body"] .brand { gap: 8px; font-size: 16px; }
[data-n="desktop-body"] .brand-mark { width: 28px; height: 28px; font-size: 14px; border-radius: 8px 8px 8px 2px; }
.workspace { width: min(1120px, 100%); margin: 20px auto 32px; padding: 0 24px; }
.intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; }
.intro h1 { font-size: 22px; line-height: 1.4; letter-spacing: 0; }
.intro p { color: #5b6d85; font-size: 13px; }
mobile-image-upload, mobile-device-connect { display: block; }
.upload-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; margin-top: 12px; }
.connection-panel { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 8px 16px; padding: 12px 16px; background: white; border: 1px solid #e0e7f2; border-radius: 10px; }
.connection-panel > .actions { justify-content: flex-start; }
.connection-panel > .status { margin: 0; }
.connection-panel > .pairing { grid-column: 1 / -1; padding-top: 12px; }
.upload-panel .actions button, .connection-panel .actions button { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.task-list { margin: 20px 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.task-list:empty { display: none; }
.task-option { display: flex; align-items: center; gap: 12px; border: 1px solid #becdf2; border-radius: 8px; padding: 13px; cursor: pointer; overflow-wrap: anywhere; }
.task-option:has(input:checked) { background: #edf2ff; border-color: #3563e9; }
.task-option input { accent-color: #3563e9; margin: 0; }
.task-option:has(input:focus-visible) { outline: 3px solid #7598ff; outline-offset: 3px; }
.selected-task { margin: 24px 0 14px; font-size: 16px; }
.upload-panel { min-width: 0; background: white; border: 1px solid #e0e7f2; border-radius: 10px; padding: 16px; }
.upload-panel h2 { font-size: 16px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.muted { font-size: 13px; }
.chooser { border: 1px dashed #b9c9e2; border-radius: 7px; padding: 14px 10px; text-align: center; background: #fbfcff; }
.chooser .hint { margin-top: 8px; }
.upload-symbol { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #edf2ff; color: #3563e9; font-size: 32px; line-height: 1; font-weight: 300; }
.actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.primary { background: #3563e9; color: white; }
.primary:hover:not(:disabled) { background: #284fc7; }
.secondary { background: white; color: #2852d0; border-color: #becdf2; }
.secondary:hover:not(:disabled) { background: #edf2ff; }
.hint { font-size: 12px; margin-top: 17px; line-height: 1.7; }
.status { font-size: 13px; margin-top: 18px; min-height: 22px; overflow-wrap: anywhere; }
.upload-panel .status { margin-top: 10px; }
.status.error { color: #b02f36; }
.footer-note { text-align: center; font-size: 12px; margin-top: 12px; }
.pairing { display: flex; align-items: center; gap: 26px; padding: 23px 0 5px; }
.qr-container { flex: 0 0 168px; }
.qr-container canvas { width: 168px; height: 168px; display: block; image-rendering: pixelated; }
.pairing-text p { font-size: 13px; margin-top: 8px; }
.pairing-text a { font-size: 12px; display: inline-block; margin-top: 10px; }
.text-button { display: block; padding: 9px 0; border: 0; background: transparent; color: #5b6d85; font-size: 12px; }
progress { width: 100%; height: 7px; accent-color: #3563e9; margin-top: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.gallery:not(:empty) { margin-top: 12px; border-top: 1px solid #e0e7f2; padding-top: 12px; }
.image-tile { position: relative; min-width: 0; }
.image-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #e0e7f2; border-radius: 6px; background: #f3f6fc; color: #5b6d85; font-size: 12px; }
.image-tile figcaption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #5b6d85; margin-top: 5px; }
.remove-image { position: absolute; right: 6px; top: 6px; padding: 0; width: 24px; height: 24px; border-radius: 50%; background: white; color: #152642; font-size: 20px; line-height: 1; border-color: #e0e7f2; }
.mobile-workspace { width: min(500px, 100%); margin: 25px auto; padding: 0 20px 30px; }
.mobile-panel { background: white; border: 1px solid #e0e7f2; border-radius: 16px; padding: 30px 24px; }
.mobile-panel h1 { font-size: 25px; letter-spacing: 0; margin-top: 18px; }
.mobile-panel .status { margin: 15px 0 25px; font-size: 14px; }
.mobile-panel button { width: 100%; }
.mobile-panel .primary { margin-top: 18px; }
.phone-files { list-style: none; padding: 0; margin: 18px 0 0; overflow-wrap: anywhere; font-size: 13px; max-height: 200px; overflow: auto; }
.phone-files li { padding: 8px 0; border-bottom: 1px solid #e0e7f2; }
@media (min-width: 701px) and (max-width: 1000px) {
  .upload-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .upload-sections { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .page-header { height: 74px; padding: 0 22px; }
  .header-note { display: none; }
  .workspace { margin-top: 12px; padding: 0 16px; }
  .connection-panel { grid-template-columns: minmax(0, 1fr); }
  .pairing { flex-direction: column; align-items: flex-start; gap: 12px; }
  .qr-container { flex: 0; align-self: center; }
  .footer-note { padding: 0 12px; }
}
