:root {
  color-scheme: dark;
  font-family: "Segoe UI", sans-serif;
  background: #10151f;
  color: #f4f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --surface: #171e2a;
  --surface-raised: #1b2432;
  --border: #2a3545;
  --muted: #929daf;
  --accent: #a7f36b;
  --accent-strong: #8dde4f;
  --danger: #ff8b8b;
}

* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 15% 12%, rgba(73, 119, 79, .13), transparent 38rem),
    radial-gradient(ellipse at 90% 80%, rgba(55, 85, 133, .12), transparent 38rem),
    #10151f;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 800 19px Manrope, sans-serif; letter-spacing: -.5px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #122012; background: var(--accent); font-size: 19px; }
.account-actions { display: flex; align-items: center; gap: 18px; }
.account-email, .muted { color: var(--muted); }
.account-email { font-size: 13px; }
.page-shell { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.auth-layout { min-height: calc(100vh - 142px); display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 90px; padding: 70px 0 86px; }
.hero-copy { max-width: 520px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.9px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Segoe UI", sans-serif; }
.hero-copy h1 { margin: 0; font-size: clamp(42px, 5.6vw, 68px); line-height: 1.08; letter-spacing: -3.6px; }
.hero-copy h1 span { color: var(--accent); }
.hero-description { max-width: 420px; margin: 23px 0 30px; color: #a8b2c0; font-size: 16px; line-height: 1.75; }
.trust-note { display: flex; gap: 9px; align-items: center; color: #c1c9d4; font-size: 13px; }
.trust-note span { color: var(--accent); font-size: 19px; }
.auth-card, .panel { border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, rgba(27,36,50,.97), rgba(21,28,40,.97)); box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.auth-card { padding: 32px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; margin-bottom: 29px; border-radius: 10px; background: #111722; }
.auth-tab { border: 0; border-radius: 7px; padding: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.auth-tab.is-active { color: #eef3f8; background: #252f3e; }
.auth-card h2 { margin-bottom: 6px; font-size: 23px; }
.auth-card .muted { margin-bottom: 24px; font-size: 13px; }
label { display: block; margin: 15px 0 8px; color: #cbd2dc; font-size: 12px; font-weight: 600; }
input[type="email"], input[type="password"] { width: 100%; min-height: 46px; padding: 0 13px; outline: 0; color: #f4f6fb; border: 1px solid #344052; border-radius: 8px; background: #111722; }
input:focus { border-color: #86d853; box-shadow: 0 0 0 3px rgba(167,243,107,.11); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .58; cursor: wait; transform: none; }
.button-primary { color: #17210f; background: var(--accent); }
.button-primary:hover { background: var(--accent-strong); }
.button-wide { width: 100%; margin-top: 21px; }
.button-quiet { color: #cad2de; border-color: #344052; background: transparent; }
.button-quiet:hover { background: #222c3a; }
.button-google { margin-top: 0; color: #edf1f6; border-color: #344052; background: #171f2b; }
.google-g { color: #87b6ff; font-size: 16px; font-weight: 800; }
.separator { display: flex; align-items: center; gap: 12px; margin: 23px 0 17px; color: #7f8a9b; font-size: 11px; }
.separator::before, .separator::after { height: 1px; flex: 1; content: ""; background: #303a48; }
.fine-print { margin: 18px 0 0; color: #778396; text-align: center; font-size: 11px; line-height: 1.6; }
.admin-subheading { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.discord-settings .section-heading { margin: 0 0 10px; }
.discord-help { max-width: 780px; font-size: 11px; line-height: 1.6; }
.discord-toolbar, .discord-save-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.discord-target-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.discord-target { display: grid; align-content: start; gap: 8px; padding: 13px; border: 1px solid #2a3443; border-radius: 9px; background: rgba(23,30,42,.83); }
.discord-target strong { min-height: 30px; color: #e6ebf1; font-size: 12px; }
.discord-target label { margin: 3px 0 0; }
.discord-target select { width: 100%; min-height: 37px; padding: 0 9px; border: 1px solid #344052; border-radius: 7px; color: #d5dce6; background: #111722; font-size: 11px; }
.discord-target select:disabled { opacity: .55; }
.discord-save-row { margin-top: 13px; }

.notice { position: sticky; z-index: 2; top: 12px; margin: 16px 0 0; padding: 13px 16px; border: 1px solid #36503a; border-radius: 9px; color: #d7f6c5; background: #1b3022; font-size: 13px; }
.notice.is-error { color: #ffd1d1; border-color: #673e45; background: #321f27; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: end; padding: 49px 0 29px; }
.dashboard-heading h1 { margin: 0 0 7px; font-size: 34px; letter-spacing: -1.4px; }
.dashboard-heading .muted { margin: 0; font-size: 13px; }
.section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.section-heading h2 { margin: 0 0 5px; font-size: 17px; }
.section-heading p { margin: 0; font-size: 12px; }
.section-heading-spread { justify-content: space-between; }
.section-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #3d553a; border-radius: 11px; color: var(--accent); background: #223123; font-size: 19px; }
.upload-card { padding: 24px; }
.drop-zone { min-height: 151px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; border: 1px dashed #48566a; border-radius: 12px; background: rgba(11,16,24,.34); text-align: center; cursor: pointer; transition: border .15s, background .15s; }
.drop-zone.is-dragging, .drop-zone:hover { border-color: var(--accent); background: rgba(167,243,107,.045); }
.drop-zone strong { font-size: 13px; }
.drop-zone .muted { font-size: 11px; }
.upload-glyph { color: var(--accent); font-size: 25px; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-list { display: grid; gap: 10px; margin-top: 14px; }
.upload-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #2b3544; border-radius: 9px; background: #141b26; }
.upload-name { overflow: hidden; color: #e6ebf1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.upload-meta { margin-top: 4px; color: var(--muted); font-size: 10px; }
.progress-track { height: 5px; overflow: hidden; margin-top: 9px; border-radius: 5px; background: #2d3745; }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .12s linear; }
.upload-percent { color: #cbd5e0; font-size: 11px; font-variant-numeric: tabular-nums; }
.files-section, .shares-section { padding: 37px 0 9px; }
.admin-panel { margin: 22px 0 8px; padding: 22px; }
.admin-panel .section-heading { margin-bottom: 14px; }
.admin-panel .eyebrow { margin-bottom: 7px; }
.admin-panel .section-heading h2 { margin: 0 0 5px; font-size: 17px; }
.admin-upload-list { display: grid; gap: 8px; }
.admin-upload-row { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid #2a3443; border-radius: 9px; background: rgba(23,30,42,.83); }
.admin-upload-owner { color: #d9e8cd; font-size: 12px; overflow-wrap: anywhere; }
.admin-upload-name { color: #eef2f7; font-size: 13px; overflow-wrap: anywhere; }
.files-section .section-heading, .shares-section .section-heading { margin-bottom: 16px; }
.count-badge { padding: 6px 10px; border: 1px solid #354153; border-radius: 20px; color: #c5cedb; font-size: 11px; }
.file-list, .share-list { display: grid; gap: 9px; }
.file-card, .share-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 15px 17px; border: 1px solid #2a3443; border-radius: 11px; background: rgba(23,30,42,.83); }
.file-info { min-width: 0; display: flex; align-items: center; gap: 13px; }
.file-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border: 1px solid #354356; border-radius: 10px; color: #b9c9e0; background: #202a39; }
.file-name { overflow: hidden; margin: 0 0 4px; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-name-wrap { min-width: 0; }
.file-meta { margin: 0; color: var(--muted); font-size: 10px; }
.file-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.button-small { min-height: 33px; padding: 0 10px; font-size: 11px; }
.button-danger { color: #ffb1b1; border-color: #603941; background: #2e2029; }
.share-row { grid-template-columns: minmax(0,1fr) auto; }
.share-info { min-width: 0; }
.share-info strong { display: block; overflow: hidden; margin-bottom: 5px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.share-info span { color: var(--muted); font-size: 10px; }
.share-actions { display: flex; align-items: center; gap: 8px; }
.share-actions label { margin: 0; font-size: 11px; }
#share-expiry { min-height: 33px; padding: 0 9px; border: 1px solid #344052; border-radius: 8px; color: #d5dce6; background: #171f2b; font: inherit; font-size: 11px; }
.share-expiry { display: block; margin-top: 5px; color: #929daf; font-size: 10px; }
.empty-state { padding: 37px 15px; border: 1px dashed #344052; border-radius: 11px; text-align: center; }
.empty-state h3 { margin: 10px 0 7px; font-size: 15px; }
.empty-state p { margin: 0; font-size: 12px; }
.empty-icon { color: #708097; font-size: 27px; }
.empty-inline { padding: 17px 0; color: #818da0; font-size: 12px; }
.site-footer { width: min(1100px, calc(100% - 40px)); margin: 24px auto 0; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.06); color: #738094; text-align: center; font-size: 10px; line-height: 1.6; }
.share-page { min-height: calc(100vh - 154px); display: grid; place-items: center; padding: 45px 20px; }
.share-card { width: min(440px, 100%); padding: 36px; text-align: center; }
.share-lock { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 22px; border: 1px solid #40563d; border-radius: 16px; color: var(--accent); background: #202d23; font-size: 25px; }
.share-card h1 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.8px; }
.share-card > .muted { font-size: 13px; line-height: 1.65; }
.shared-file { margin: 20px 0 0; padding: 13px; border: 1px solid #303c4b; border-radius: 9px; color: #c8d1dc; background: #141b26; font-size: 12px; overflow-wrap: anywhere; }
.back-link { display: inline-block; margin-top: 24px; color: #a9b5c5; font-size: 11px; text-decoration: none; }
.back-link:hover { color: var(--accent); }

@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 20px; }
  .auth-layout { grid-template-columns: 1fr; gap: 29px; padding: 48px 0; }
  .hero-copy { max-width: none; }
  .hero-copy h1 { font-size: clamp(42px, 11vw, 58px); letter-spacing: -2.5px; }
  .hero-description { margin: 15px 0; font-size: 14px; }
  .trust-note { font-size: 11px; }
  .auth-card { padding: 23px; }
  .account-email { display: none; }
  .dashboard-heading { padding-top: 34px; }
  .dashboard-heading h1 { font-size: 28px; }
  .upload-card { padding: 17px; }
  .file-card { grid-template-columns: 1fr; align-items: start; }
  .file-actions { justify-content: start; padding-left: 52px; }
  .share-row { grid-template-columns: 1fr; }
  .share-actions { justify-content: start; }
  .discord-target-list { grid-template-columns: 1fr; }
  .page-shell, .site-footer { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
