:root {
	--brand: #b88920; --brand-dark: #8a6515; --brand-soft: #fff7df;
	--ink: #18212f; --muted: #687386; --line: #e5e9ef;
	--surface: #fff; --background: #f4f6f8; --success: #198754; --danger: #c63f4c;
	--shadow: 0 24px 70px rgba(24, 33, 47, .10);
}
* { box-sizing: border-box; }
body {
	margin: 0; min-height: 100vh; padding: 48px 20px 96px;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ink);
	background: radial-gradient(circle at 15% 5%, rgba(212, 175, 55, .14), transparent 30rem), linear-gradient(180deg, #fbfcfd, var(--background));
}
.page-shell { width: min(100%, 720px); margin: 0 auto; }
.brand-lockup { display: flex; align-items: center; justify-content: center; margin-bottom: 22px; font-weight: 800; letter-spacing: -.02em; }
.upload-container { background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.9); border-radius: 24px; padding: clamp(24px,5vw,44px); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.upload-header { text-align: center; margin-bottom: 30px; }
.upload-header h1 { margin: 0; font-size: clamp(1.75rem,5vw,2.35rem); letter-spacing: -.045em; }
.upload-header p { margin: 10px auto 0; max-width: 520px; color: var(--muted); line-height: 1.55; }
.share-code { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font: 700 .82rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.dropzone.upload-dropzone { min-height: 210px; padding: 28px; border: 1.5px dashed #c9d0da; border-radius: 18px; background: #fafbfc; transition: border-color .2s, background .2s, transform .2s; }
.dropzone.upload-dropzone:hover, .dropzone.upload-dropzone.dz-drag-hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.dropzone.upload-dropzone .dz-message { margin: 0; }
.dropzone.upload-dropzone.dz-started .dz-message { display: block; }
.dropzone-message { display: grid; justify-items: center; text-align: center; }
.upload-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; border-radius: 17px; color: var(--brand-dark); background: #fff; box-shadow: 0 8px 24px rgba(24,33,47,.08); }
.dropzone-title { font-weight: 750; font-size: 1.04rem; }
.dropzone-hint { margin-top: 7px; color: var(--muted); font-size: .86rem; }
.browse-label { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.upload-queue { margin-top: 22px; }
.upload-queue[hidden] { display: none; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.queue-heading strong { font-size: .92rem; }
.queue-status { color: var(--muted); font-size: .82rem; }
.total-progress { height: 5px; overflow: hidden; margin-bottom: 13px; border-radius: 999px; background: #edf0f3; }
.total-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),#e4c155); transition: width .2s ease; }
.upload-previews { display: grid; gap: 9px; }
.upload-file { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.file-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #f2f4f7; color: var(--muted); }
.file-copy { min-width: 0; }
.file-name { overflow: hidden; font-size: .88rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { display: flex; gap: 8px; margin-top: 4px; color: var(--muted); font-size: .74rem; }
.file-progress { height: 4px; overflow: hidden; margin-top: 8px; border-radius: 999px; background: #eef1f4; }
.file-progress span { display: block; width: 0; height: 100%; background: var(--brand); transition: width .15s linear; }
.upload-file.dz-success .file-progress span { background: var(--success); }
.upload-file.dz-error { border-color: rgba(198,63,76,.35); }
.upload-file.dz-error .file-progress span { background: var(--danger); }
.file-percent { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.dz-error-message { display: none; margin-top: 5px; color: var(--danger); font-size: .74rem; }
.dz-error .dz-error-message { display: block; }
.files-section { margin-top: 30px; }
.section-title { margin: 0 0 12px; font-size: .94rem; }
.file-list { display: grid; gap: 8px; }
.file-list:empty { display: none; }
.file-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.file-row__name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .88rem; }
.file-row__name a { color: inherit; text-decoration: none; }
.file-row__meta { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; }
.inline-icon { display: block; }
.delete-button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #8b4450; text-decoration: none; transition: background .2s; }
.delete-button:hover { background: #fff0f2; }
.actions { display: flex; gap: 12px; margin-top: 28px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#c79b2e,var(--brand-dark)); box-shadow: 0 9px 20px rgba(138,101,21,.2); color: #fff; font: 700 .94rem/1 inherit; text-align: center; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 25px rgba(138,101,21,.28); }
.primary-button.is-disabled { opacity: .5; pointer-events: none; }
.expiry { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: .78rem; }
.footer-bar { margin-top: 26px; color: #7b8492; text-align: center; font-size: .78rem; }
.footer-bar strong { color: var(--brand-dark); }
.auth-card { max-width: 480px; margin: 9vh auto 0; }
.centered-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.centered-page .auth-card { margin: 0 auto; }
.centered-page .footer-bar { position: fixed; right: 20px; bottom: 22px; left: 20px; margin: 0; }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 700; }
.auth-form input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #d9dee6; border-radius: 12px; color: var(--ink); font: inherit; outline: none; transition: border .2s, box-shadow .2s; }
.auth-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(184,137,32,.12); }
.public-nav { display: flex; justify-content: center; margin-top: 22px; }
.public-nav a { color: var(--muted); font-size: .8rem; text-decoration: none; }
.empty-state { padding: 25px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; font-size: .88rem; }
.expired-notice { display: grid; gap: 4px; margin: -6px 0 22px; padding: 13px 15px; border: 1px solid #efd59e; border-radius: 12px; background: #fff9e9; color: #725718; font-size: .82rem; line-height: 1.45; }
.error-symbol { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 24px; background: var(--brand-soft); color: var(--brand-dark); font-size: 2rem; }
@media (max-width: 560px) {
	body { padding: 24px 12px 70px; }
	.upload-container { border-radius: 19px; }
	.dropzone.upload-dropzone { min-height: 190px; padding: 22px 14px; }
	.upload-file { grid-template-columns: 34px minmax(0,1fr); }
	.file-percent { grid-column: 2; }
}
