:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #181818;
    background: #fff;
    font-synthesis: none;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: #fff;
}

button, input { font: inherit; }
button { color: inherit; }

.page-shell {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
    color: #666;
    font-size: 12px;
}

.brand {
    color: #181818;
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
}

main { padding: 56px 0 80px; }

.page-heading h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.page-heading p {
    margin: 12px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.upload-limits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 22px 0 0;
    padding: 0;
    color: #555;
    list-style: none;
    font-size: 12px;
}

.upload-card {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
}

.drop-zone {
    width: 100%;
    min-height: 190px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #aaa;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-dragging {
    outline: none;
    border-color: #181818;
    background: #fafafa;
}

.drop-title { font-size: 15px; font-weight: 600; }
.drop-subtitle { margin-top: 7px; color: #777; font-size: 12px; }

.choose-pill {
    margin-top: 20px;
    padding: 9px 18px;
    border-radius: 5px;
    color: #fff;
    background: #181818;
    font-size: 12px;
    font-weight: 600;
}

.privacy-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    cursor: pointer;
}

.privacy-toggle input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #181818;
}

.toggle-copy strong, .toggle-copy small { display: block; }
.toggle-copy strong { font-size: 13px; font-weight: 600; }
.toggle-copy small { margin-top: 3px; color: #777; font-size: 11px; }

.queue-panel {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.queue-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    font-weight: 600;
}

.queue-heading b { font-weight: inherit; }

.text-button, .remove-file {
    padding: 0;
    border: 0;
    color: #666;
    background: none;
    cursor: pointer;
    font-size: 12px;
}

.text-button:hover, .remove-file:hover { color: #181818; text-decoration: underline; }

.file-list {
    display: grid;
    gap: 10px;
    max-height: 360px;
    margin-top: 14px;
    overflow: auto;
}

.file-item {
    padding: 14px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
}

.file-item[data-status="error"] { border-color: #c84d4d; }
.file-main { min-width: 0; }

.file-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.file-name-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.name-shield {
    flex: 0 0 auto;
    color: #777;
    font-size: 10px;
    font-weight: 400;
}

.file-meta, .transfer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #777;
    font-size: 11px;
}

.file-meta { margin-top: 7px; }
.file-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.progress-track {
    height: 4px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 2px;
    background: #e8e8e8;
}

.progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: #181818;
}

.file-item[data-status="error"] .progress-bar { background: #c84d4d; }
.transfer-line { margin-top: 7px; font-variant-numeric: tabular-nums; }

.result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 12px;
}

.share-link {
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    background: #fff;
    color: #555;
    font-size: 11px;
    outline: none;
}

.copy-link {
    padding: 0 13px;
    border: 1px solid #181818;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.queue-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.primary-button, .secondary-button {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #181818;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.primary-button { flex: 1; color: #fff; background: #181818; }
.secondary-button { background: #fff; }
.primary-button:disabled { cursor: default; opacity: .45; }
.primary-button:hover:not(:disabled) { background: #333; }
.secondary-button:hover { background: #f5f5f5; }

.global-error {
    margin-top: 16px;
    padding: 11px 12px;
    border: 1px solid #dfb7b7;
    border-radius: 5px;
    color: #a22d2d;
    background: #fffafa;
    font-size: 12px;
    line-height: 1.6;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    padding: 10px 15px;
    border-radius: 5px;
    color: #fff;
    background: #181818;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
}

.toast.show { opacity: 1; }

.sr-only {
    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: 560px) {
    .page-shell { width: min(760px, calc(100% - 28px)); }
    .site-header { height: 56px; }
    main { padding: 38px 0 56px; }
    .page-heading h1 { font-size: 26px; }
    .upload-limits { gap: 7px 16px; }
    .upload-card { margin-top: 26px; padding: 16px; }
    .drop-zone { min-height: 170px; }
    .file-name-wrap { align-items: flex-start; flex-direction: column; gap: 3px; }
    .result-row { grid-template-columns: 1fr; }
    .copy-link { min-height: 36px; }
}
