:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #233142; background: #f3f5f8; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button, input, textarea, .drop-zone { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, .drop-zone:focus-visible { outline: 3px solid #8ab4fa; outline-offset: 3px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1480px; margin: auto; padding: 24px 32px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: #2763e7; color: white; border-radius: 13px; font-size: 30px; line-height: 1; }
.brand strong { font-size: 21px; letter-spacing: -.5px; display: block; }
.brand div > span { display: block; color: #748094; font-size: 12px; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.connection { font-size: 12px; color: #5f6f82; }
.connection.offline { color: #b27018; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; max-width: 1480px; padding: 4px 32px 32px; margin: auto; align-items: start; }
.full-width { grid-column: 1 / -1; }
.card { background: white; border: 1px solid #e1e6ee; border-radius: 18px; padding: 25px; box-shadow: 0 3px 14px #22304704; min-width: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-size: 23px; letter-spacing: -.6px; margin-bottom: 0; }
.eyebrow { color: #76849a; font-size: 11px; font-weight: 600; letter-spacing: 1px; margin-bottom: 6px; }
.card-intro { color: #748094; line-height: 1.6; font-size: 12px; margin: 15px 0; }
.status { font-size: 12px; color: #216d4a; white-space: nowrap; }
.status.pending { color: #9b681c; }
.status.failed { color: #bd3535; }
.button { border: 1px solid #dce2eb; border-radius: 9px; background: white; color: #42536a; padding: 10px 16px; transition: background .15s; font-size: 13px; line-height: 1.3; }
.button:hover:not(:disabled) { background: #f2f5fb; }
.button.primary { background: #2763e7; border-color: #2763e7; color: white; }
.button.primary:hover:not(:disabled) { background: #1a51cb; }
.button.quiet { border-color: transparent; background: transparent; }
.button.small { padding: 8px 11px; font-size: 12px; }
.button.danger { color: #b94343; }
.button-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.text-button { border: 0; background: none; color: #2763e7; font-size: 12px; padding: 4px 0; }
.muted { color: #748094; font-size: 12px; }
.footnote { color: #8290a2; font-size: 11px; line-height: 1.7; margin: 16px 0 0; }
textarea { width: 100%; min-height: 380px; height: 48vh; resize: vertical; border: 1px solid #dfe5ee; border-radius: 12px; padding: 18px; background: #fafbfe; color: #26364b; font-family: "SFMono-Regular", Consolas, "Microsoft YaHei", monospace; font-size: 14px; line-height: 1.8; outline: none; }
textarea:focus { border-color: #83a8f3; background: white; }
textarea:disabled { color: #8c97a8; }
.text-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.notice { padding: 15px; border: 1px solid #dce5f1; border-radius: 12px; margin: 14px 0; font-size: 12px; line-height: 1.7; }
.notice p { margin: 5px 0 10px; }
.notice strong { font-weight: 600; }
.notice.warning { color: #805824; background: #fffbf0; border-color: #efdfb6; }
.version-preview { max-height: 180px; overflow: auto; padding: 12px; margin: 10px 0; background: #ffffffa6; border: 1px solid #e8dfcf; border-radius: 7px; font-family: Consolas, monospace; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: #59606c; font-size: 12px; }
.error-message { font-size: 12px; line-height: 1.6; color: #b94343; background: #fff3f3; border: 1px solid #f0d5d5; border-radius: 9px; padding: 10px 12px; margin: 14px 0 0; overflow-wrap: anywhere; }
.drop-zone { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 24px 12px; margin-top: 21px; border: 1.5px dashed #c7d5ec; border-radius: 12px; background: #f7faff; color: #4670ab; cursor: pointer; text-align: center; transition: background .15s; }
.drop-zone strong { font-size: 13px; font-weight: 500; }
.drop-zone > span:last-child { font-size: 11px; color: #8290a2; }
.drop-zone.drag-over { background: #eaf1ff; border-color: #2763e7; }
.upload-icon { display: grid; place-items: center; border: 1px solid #cbdaf5; color: #4279d9; border-radius: 10px; width: 34px; height: 34px; font-size: 23px; }
.file-list, .transfer-list { list-style: none; margin: 0; padding: 0; }
.file-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #edf0f5; padding: 16px 0; min-width: 0; }
.file-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 42px; border-radius: 8px; background: #f0f4fb; color: #6684ae; font-size: 10px; font-weight: 600; }
.file-details { flex: 1; min-width: 0; }
.file-name { display: block; max-width: 100%; font-size: 13px; font-weight: 500; text-align: left; border: 0; background: transparent; padding: 0; color: #34455e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-name:hover { color: #2763e7; }
.file-meta { font-size: 10px; line-height: 1.7; margin-top: 5px; color: #8b97a8; }
.file-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 160px; }
.file-actions .button { padding: 6px; font-size: 11px; border-color: transparent; }
.empty-state { text-align: center; color: #95a0b1; font-size: 13px; padding: 36px 12px; margin-bottom: 0; }
.transfers { margin-top: 22px; padding: 13px; border: 1px solid #e5eaf2; border-radius: 12px; background: #fbfcfe; }
.section-label { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 12px; color: #66778d; }
.transfer-row { padding-top: 13px; }
.transfer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: #66778d; }
.transfer-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.transfer-status { flex-shrink: 0; }
.transfer-row progress { display: block; width: 100%; height: 5px; margin: 8px 0; accent-color: #3b73e8; border: 0; }
.transfer-row .error-message { margin: 6px 0; font-size: 11px; padding: 6px 8px; }
.transfer-controls { display: flex; justify-content: flex-end; gap: 10px; }
.login-card { width: min(440px, calc(100% - 32px)); padding: 36px; margin: 8vh auto; background: white; border: 1px solid #e0e6ef; border-radius: 20px; box-shadow: 0 12px 40px #22304707; }
.login-card h1 { margin: 12px 0; font-size: 26px; }
.login-card .muted { line-height: 1.8; }
.login-card form { margin-top: 27px; }
.login-card label { display: block; font-size: 12px; margin-bottom: 8px; }
.login-card input { width: 100%; border: 1px solid #dce3ed; border-radius: 9px; padding: 12px; color: #233142; font-size: 14px; }
.login-card form > .button { width: 100%; margin-top: 14px; padding: 12px; }
.preview-dialog { width: min(920px, calc(100vw - 32px)); max-height: 88vh; padding: 22px; border: 0; border-radius: 16px; color: #233142; box-shadow: 0 20px 100px #0003; }
.preview-dialog::backdrop { background: #17263b99; }
.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.preview-header h2 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#preview-image { display: block; max-width: 100%; max-height: 68vh; object-fit: contain; margin: 0 auto; }
#preview-text { background: #f5f7fb; border-radius: 10px; padding: 16px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; max-height: 65vh; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); color: white; background: #25344a; border-radius: 10px; padding: 12px 18px; font-size: 12px; z-index: 20; box-shadow: 0 8px 28px #0002; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) { .site-header { padding: 22px; } .workspace { padding: 0 22px 24px; gap: 18px; } .card { padding: 20px; } .file-row { flex-wrap: wrap; } .file-details { flex-basis: calc(100% - 48px); } .file-actions { max-width: none; margin-left: auto; } }
@media (max-width: 740px) { .site-header { padding: 18px 16px; } .workspace { grid-template-columns: 1fr; padding: 0 12px 24px; gap: 16px; } .card { padding: 20px 17px; border-radius: 15px; } .header-actions { gap: 6px; } .connection { font-size: 10px; } .brand strong { font-size: 19px; } .brand-mark { width: 36px; height: 36px; border-radius: 10px; } textarea { min-height: 280px; height: 42vh; padding: 14px; font-size: 16px; } .login-card { padding: 28px; margin-top: 6vh; } .file-row { flex-wrap: nowrap; } .file-details { flex-basis: auto; } .file-actions { max-width: 118px; } .card-header { gap: 8px; } h1, h2 { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
