:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e7e9ee;
  --paper: #ffffff;
  --canvas: #f5f6f8;
  --accent: #ff6b35;
  --accent-dark: #e95420;
  --green: #18794e;
  --red: #b42318;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.topbar { height: 76px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong { display: block; font-size: 18px; }
.brand small { display: block; color: var(--muted); margin-top: 2px; }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: white; font-size: 28px; font-weight: 800; background: var(--accent); box-shadow: 0 12px 30px rgba(255,107,53,.24); }
.brand-mark.small { width: 42px; height: 42px; border-radius: 13px; font-size: 20px; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-size: 12px; letter-spacing: .16em; font-weight: 800; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.lede { margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.stats { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(23,32,51,.04); }
.stats div { min-width: 112px; padding: 18px 24px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 25px; }
.stats span { color: var(--muted); font-size: 12px; }
.upload-card { background: #202a3c; border-radius: 26px; padding: 20px; box-shadow: 0 22px 60px rgba(23,32,51,.14); }
.upload-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.drop-zone { min-height: 150px; border: 1.5px dashed rgba(255,255,255,.3); border-radius: 18px; color: white; display: flex; align-items: center; gap: 18px; padding: 24px; position: relative; transition: .2s ease; }
.drop-zone.dragging { border-color: var(--accent); background: rgba(255,107,53,.12); transform: scale(.995); }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-icon { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 24px; }
.drop-zone strong, .drop-zone small { display: block; }
.drop-zone strong { max-width: 380px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
.drop-zone small { color: rgba(255,255,255,.6); margin-top: 7px; }
.upload-fields { padding: 5px 4px; display: flex; flex-direction: column; justify-content: center; }
label { font-size: 13px; font-weight: 700; }
label span { color: #98a2b3; font-weight: 400; }
input[type="text"], input[type="password"], input[type="search"] { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); padding: 13px 14px; outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,53,.13); }
.upload-fields label { color: white; margin-bottom: 8px; }
.upload-fields .primary { margin-top: 12px; }
button, .primary, .secondary { border: 0; border-radius: 12px; padding: 12px 17px; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
.primary { background: var(--accent); color: white; box-shadow: 0 8px 22px rgba(255,107,53,.22); }
.primary:hover { background: var(--accent-dark); }
.primary.compact { padding: 10px 15px; }
.secondary { background: #f0f2f5; color: var(--ink); }
.quiet { background: transparent; color: var(--muted); padding: 10px; }
.danger { background: transparent; color: var(--red); padding: 8px 0; }
.library { margin-top: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
h2 { margin: 0; font-size: 29px; letter-spacing: -.03em; }
.search { width: min(310px, 42vw); position: relative; }
.search span { position: absolute; left: 13px; top: 10px; color: var(--muted); font-size: 19px; }
.search input { padding-left: 38px; }
.report-list { display: grid; gap: 12px; }
.report-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; box-shadow: 0 8px 26px rgba(23,32,51,.035); }
.report-card[hidden] { display: none; }
.report-main { display: flex; align-items: center; min-width: 0; gap: 15px; }
.file-badge { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: var(--accent-dark); background: #fff1ec; font-size: 11px; font-weight: 900; }
.report-copy { min-width: 0; }
.report-copy h3 { margin: 0 0 5px; font-size: 17px; }
.report-copy p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.report-url { display: block; color: #496079; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.report-url:hover { text-decoration: underline; }
.report-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: #f3f4f6; }
.report-details { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 2px; padding: 20px 4px 2px; display: grid; grid-template-columns: auto 1fr 1fr auto; align-items: end; gap: 22px; }
.report-details[hidden] { display: none; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); }
.qr-wrap img { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 5px; }
.inline-form label { display: block; margin-bottom: 8px; }
.inline-form > div { display: flex; align-items: center; gap: 8px; }
.inline-form input[type="file"] { max-width: 240px; font-size: 12px; }
.delete-form { align-self: center; }
.flash { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.flash.success { background: #eaf8f0; color: var(--green); border: 1px solid #c8ebd7; }
.flash.error { background: #fff0ee; color: var(--red); border: 1px solid #ffd5cf; }
.empty-state, .empty-search { padding: 64px 20px; text-align: center; background: white; border: 1px dashed #d5d9e0; border-radius: 18px; color: var(--muted); }
.empty-state div { font-size: 30px; color: var(--accent); }
.empty-state h3 { color: var(--ink); margin: 12px 0 6px; }
.empty-state p { margin: 0; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 15%, #fff0ea 0, transparent 33%), radial-gradient(circle at 85% 85%, #e9eef7 0, transparent 35%), var(--canvas); }
.login-card { width: min(440px, 100%); background: white; border: 1px solid var(--line); border-radius: 28px; padding: 42px; box-shadow: 0 25px 80px rgba(23,32,51,.12); }
.login-card .brand-mark { margin-bottom: 30px; }
.login-card h1 { font-size: 38px; }
.muted { color: var(--muted); line-height: 1.65; }
.login-form { margin-top: 28px; }
.login-form label { display: block; margin-bottom: 8px; }
.wide { width: 100%; margin-top: 13px; }
@media (max-width: 820px) {
  .container { width: min(100% - 28px, 1180px); padding-top: 34px; }
  .hero-grid, .upload-row { grid-template-columns: 1fr; }
  .stats { justify-self: start; }
  .report-card { grid-template-columns: 1fr; }
  .report-actions { justify-content: flex-start; }
  .report-details { grid-template-columns: 1fr; align-items: stretch; }
  .qr-wrap { align-items: flex-start; }
  .inline-form > div { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .topbar { height: 66px; padding: 0 16px; }
  .brand small { display: none; }
  .hero-grid { align-items: start; }
  .stats { width: 100%; }
  .stats div { min-width: 0; flex: 1; }
  .drop-zone { min-height: 132px; padding: 18px; }
  .section-head { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .report-actions { display: grid; grid-template-columns: 1fr 1fr auto; }
  .login-card { padding: 30px 24px; }
}

.public-topbar { position: relative; }
.quiet-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.public-upload-shell { width: min(1100px, calc(100% - 40px)); margin: 0 auto; min-height: calc(100vh - 76px); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(40px, 8vw, 100px); padding: 56px 0 80px; }
.public-upload-intro h1 { font-size: clamp(42px, 6vw, 68px); }
.public-upload-intro .lede { line-height: 1.8; max-width: 520px; }
.safety-note { margin-top: 28px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 5px; }
.safety-note span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.colleague-form-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 42px); box-shadow: 0 24px 80px rgba(23,32,51,.1); }
.colleague-form { display: grid; gap: 11px; }
.colleague-form label { margin-top: 7px; }
.colleague-form input[type="text"], .colleague-form input[type="password"] { background: #fafbfc; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: block; margin-bottom: 8px; }
.colleague-drop { min-height: 130px; color: var(--ink); border-color: #ccd1da; background: #fafbfc; }
.colleague-drop .upload-icon { background: #fff1ec; color: var(--accent-dark); }
.colleague-drop small { color: var(--muted); }
.tall { min-height: 50px; }
.privacy-copy { margin: 18px 0 0; color: #98a2b3; font-size: 11px; line-height: 1.6; text-align: center; }
.success-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 20% 10%, #fff0ea 0, transparent 34%), var(--canvas); }
.success-card { width: min(760px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: clamp(30px, 6vw, 58px); box-shadow: 0 28px 90px rgba(23,32,51,.12); }
.success-check { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #eaf8f0; color: var(--green); font-size: 28px; margin-bottom: 26px; }
.success-card h1 { font-size: 46px; }
.success-title { color: var(--muted); font-size: 18px; }
.success-grid { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.success-link-block { display: grid; gap: 11px; }
.success-link-block > a:not(.primary) { color: #496079; font-size: 13px; overflow-wrap: anywhere; }
.success-qr { display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: 12px; }
.success-qr img { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 7px; }
.success-footer { display: flex; gap: 20px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.success-footer a { color: var(--muted); font-size: 13px; }
.account-actions { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.account-actions form { margin: 0; }
.colleague-dashboard { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.colleague-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.colleague-heading h1 { font-size: clamp(38px, 6vw, 58px); }
.personal-count { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px 24px; min-width: 150px; }
.personal-count strong, .personal-count span { display: block; }
.personal-count strong { font-size: 28px; }
.personal-count span { color: var(--muted); font-size: 12px; }
.compact-card { padding: 24px; border-radius: 22px; }
.colleague-publish-grid { grid-template-columns: minmax(180px, .75fr) minmax(300px, 1.25fr) auto; align-items: end; gap: 16px; }
.colleague-publish-grid > div > label { display: block; margin: 0 0 8px; }
.small-drop { min-height: 56px; padding: 8px 14px; border-radius: 12px; gap: 12px; }
.small-drop .upload-icon { width: 38px; height: 38px; border-radius: 10px; }
.small-drop strong { font-size: 14px; }
.small-drop small { margin-top: 2px; }
.personal-library { margin-top: 48px; }
.personal-file-list { display: grid; gap: 12px; }
.personal-file-card { grid-template-columns: minmax(0, 1fr) auto; }
.personal-file-actions { display: flex; align-items: center; gap: 8px; }
.personal-file-actions form { margin: 0; }
.danger-button { min-height: 42px; padding: 10px 13px; border: 1px solid #f1c7c2; background: #fff7f6; }
.login-brand { display: inline-flex; }
.login-error { margin: 22px 0 -8px; }
.password-label { margin-top: 16px; }
.back-home { display: block; text-align: center; margin-top: 20px; color: var(--muted); font-size: 13px; text-decoration: none; }
@media (max-width: 760px) {
  .public-upload-shell { grid-template-columns: 1fr; align-items: start; padding-top: 38px; }
  .form-grid, .success-grid { grid-template-columns: 1fr; }
  .success-qr { align-items: flex-start; }
  .colleague-publish-grid { grid-template-columns: 1fr; }
  .personal-file-card { grid-template-columns: 1fr; }
  .personal-file-actions { flex-wrap: wrap; }
  .colleague-heading { align-items: stretch; flex-direction: column; }
  .personal-count { align-self: flex-start; }
}
@media (max-width: 540px) {
  .colleague-dashboard { width: min(100% - 28px, 1100px); padding-top: 34px; }
  .account-actions > span { display: none; }
  .personal-file-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .personal-file-actions form, .personal-file-actions button, .personal-file-actions a { width: 100%; }
}

/* Maxmore · Light Glass */
.winner-ui {
  --ink: #202536;
  --muted: #747c91;
  --line: #dfe4ef;
  --paper: rgba(255,255,255,.86);
  --canvas: #edf1f8;
  --accent: #6e5ce7;
  --accent-dark: #5d4ad4;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 5%, rgba(255,255,255,.98) 0, rgba(255,255,255,0) 31%),
    radial-gradient(circle at 90% 82%, rgba(222,215,255,.75) 0, rgba(222,215,255,0) 30%),
    #edf1f8;
  color: var(--ink);
}
.winner-ui .brand-mark { background: linear-gradient(145deg,#846ff4,#5d4ad4); box-shadow: 0 12px 28px rgba(110,92,231,.26); }
.winner-ui .brand strong { font-size: 15px; letter-spacing: .08em; }
.winner-ui .brand small { font-size: 10px; letter-spacing: .04em; }
.winner-ui .eyebrow { color: var(--accent); }
.winner-ui .primary { background: var(--accent); box-shadow: 0 10px 25px rgba(110,92,231,.24); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.winner-ui .primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(110,92,231,.3); }
.winner-ui .secondary { color: #5e6578; background: #f0f2f7; }
.winner-ui input[type="text"], .winner-ui input[type="password"], .winner-ui input[type="search"] { border-color: #dfe4ee; background: rgba(255,255,255,.82); }
.winner-ui input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(110,92,231,.12); }
.winner-topbar { height: 76px; padding: 0 max(24px,calc((100vw - 1100px)/2)); position: sticky; background: rgba(255,255,255,.76); border-color: rgba(221,226,238,.85); box-shadow: 0 10px 35px rgba(68,81,116,.05); }
.winner-ui .account-actions { gap: 10px; }
.winner-ui .account-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #5d4ad4; background: #e9e5ff; font-weight: 800; }
.winner-ui .account-name { color: #51586b; font-weight: 700; }
.winner-ui .quiet { border-radius: 10px; }
.winner-ui .colleague-dashboard { padding-top: 64px; }
.winner-ui .colleague-heading { margin-bottom: 34px; }
.winner-ui .colleague-heading h1 { max-width: 680px; font-size: clamp(42px,7vw,70px); letter-spacing: -.055em; }
.winner-ui .colleague-heading .lede { margin-top: 14px; }
.winner-ui .personal-count { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.9); box-shadow: 0 18px 50px rgba(69,82,119,.08); backdrop-filter: blur(18px); }
.winner-ui .personal-count strong { color: var(--accent); }
.winner-ui .winner-upload-card { padding: 22px; border-radius: 24px; border-color: rgba(255,255,255,.92); background: rgba(255,255,255,.76); box-shadow: 0 25px 65px rgba(69,82,119,.11); backdrop-filter: blur(20px); }
.winner-ui .colleague-publish-grid { grid-template-columns: minmax(180px,.72fr) minmax(330px,1.28fr) auto; gap: 18px; }
.winner-ui .colleague-form input[type="text"] { background: rgba(255,255,255,.9); }
.winner-ui .colleague-drop { border: 1px solid #e0e4ee; background: rgba(255,255,255,.9); color: var(--ink); }
.winner-ui .colleague-drop.dragging { border-color: var(--accent); background: #f1efff; }
.winner-ui .colleague-drop .upload-icon { color: var(--accent); background: #eeeaff; }
.winner-ui .colleague-drop small { color: #868da0; }
.winner-ui .personal-library { margin-top: 62px; }
.winner-ui .section-head { margin-bottom: 20px; }
.winner-ui .search span { color: #8d94a6; }
.winner-ui .personal-file-list { gap: 13px; }
.winner-ui .personal-file-card { padding: 17px; border-color: rgba(224,228,238,.95); background: rgba(255,255,255,.82); box-shadow: 0 12px 32px rgba(68,81,113,.055); backdrop-filter: blur(14px); transition: transform .18s ease, box-shadow .18s ease; }
.winner-ui .personal-file-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(68,81,113,.09); }
.winner-ui .file-badge { color: #6553d8; background: #eeeaff; }
.winner-ui .report-copy h3 { color: #262b3b; }
.winner-ui .report-url { color: #747c91; }
.winner-ui .danger-button { color: #a54a53; border-color: #ead8da; background: #fff8f8; }
.winner-ui .empty-state, .winner-ui .empty-search { background: rgba(255,255,255,.66); border-color: #d9deea; }
.winner-ui .empty-state div { color: var(--accent); }
.winner-login-page .colleague-login-shell { background: transparent; }
.winner-login-page .winner-login-card { width: min(480px,100%); padding: 48px; border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.78); box-shadow: 0 30px 90px rgba(69,82,119,.14); backdrop-filter: blur(24px); }
.winner-login-page .login-brand { margin-bottom: 42px; }
.winner-login-page .login-card .brand-mark { margin: 0; }
.winner-login-page .login-card h1 { font-size: 44px; letter-spacing: -.045em; }
.winner-login-page .login-form { margin-top: 30px; }
.winner-login-page .login-form input { min-height: 50px; }
.winner-success-page .success-shell { background: transparent; }
.winner-success-page .success-card { border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.8); box-shadow: 0 30px 90px rgba(69,82,119,.14); backdrop-filter: blur(24px); }
.winner-success-page .success-brand { margin-bottom: 44px; }
.winner-success-page .success-check { color: #5d4ad4; background: #e9e5ff; }
.winner-success-page .success-grid { border-color: #e3e7f0; }
.winner-success-page .success-qr img { padding: 8px; background: white; border-color: #e2e6ef; }
@media (max-width: 760px) {
  .winner-ui .colleague-dashboard { padding-top: 42px; }
  .winner-ui .colleague-publish-grid { grid-template-columns: 1fr; }
  .winner-ui .winner-upload-card { padding: 18px; }
  .winner-ui .colleague-heading h1 { font-size: clamp(40px,12vw,58px); }
  .winner-ui .personal-count { min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 9px; }
  .winner-ui .personal-count strong, .winner-ui .personal-count span { display: inline; }
  .winner-login-page .winner-login-card { padding: 38px 28px; }
}
@media (max-width: 540px) {
  .winner-topbar { padding: 0 15px; }
  .winner-ui .brand small { display: block; }
  .winner-ui .account-name { display: none; }
  .winner-ui .account-actions > span { display: grid; }
  .winner-ui .personal-file-actions { gap: 7px; }
  .winner-ui .personal-library { margin-top: 46px; }
  .winner-success-page .success-shell { padding: 18px; }
}
