:root {
  color-scheme: light;

  --page: #ffffff;
  --card: #ffffff;

  --text: #111827;
  --border: #dbe3ea;
  --muted: #6b7280;

  /* MAIN BRAND COLOR */
  --accent: #19b5f1;

  /* hover/background */
  --accent-soft: rgba(25, 181, 241, 0.12);
  --accent-soft-2: rgba(25, 181, 241, 0.18);

  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html,
body {
  background: var(--page) !important;
  color: var(--text) !important;
}

body {
  margin: 0;
  padding: 24px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: 20px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
}

.card {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

/* =========================
   CONTROLS
========================= */

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.btn {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 800;
  font-size: 20px;
  transition: all .2s ease;
}

.btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn:focus {
  outline: 3px solid var(--accent-soft-2);
  outline-offset: 2px;
}

.note {
  color: var(--muted);
  font-size: 20px;
}

.allowed {
  text-align: center;
  margin: 10px 0 18px;
  font-size: 20px;
}

.allowed code {
  margin: 0 .15rem;
}

/* =========================
   UPPY
========================= */

#drag-drop-area .uppy-Dashboard-inner {
  border-radius: 14px;
  box-shadow: none !important;
  max-width: 720px;
  margin: 0 auto;
  border: 2px dashed var(--accent) !important;
  background: #ffffff !important;
}

/* remove ugly gray background */
.uppy-Dashboard-inner,
.uppy-DashboardContent-back,
.uppy-Dashboard-AddFiles {
  background: #ffffff !important;
}

.uppy-Dashboard-AddFiles,
.uppy-Dashboard-AddFiles-inner {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* ICON */
.uppy-Dashboard-AddFiles-icon {
  display: block !important;
  color: var(--accent) !important;
  opacity: 1 !important;
}

/* TEXT */
.uppy-Dashboard-browse,
.uppy-Dashboard-AddFiles-title button,
.uppy-c-btn-link {
  color: var(--accent) !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

/* DROP ZONE TEXT */
.uppy-Dashboard-AddFiles-title {
  color: #111827 !important;
  font-weight: 500 !important;
}

/* NOTE */
.uppy-Dashboard-note {
  color: var(--muted) !important;
}

/* progress */
.uppy-StatusBar-progress {
  background: var(--accent) !important;
}

/* remove extra buttons */
.uppy-DashboardContent-bar .uppy-c-btn,
.uppy-DashboardContent-save,
.uppy-DashboardContent-done,
.uppy-StatusBar .uppy-StatusBar-actionBtn--done,
.uppy-StatusBar .uppy-StatusBar-actions .uppy-c-btn-primary,
.uppy-StatusBar.is-complete .uppy-StatusBar-actions .uppy-c-btn {
  display: none !important;
}

/* =========================
   CUSTOM PROGRESS
========================= */

#progressWrap {
  display: none;
  margin: 20px auto 0;
  max-width: 600px;
  text-align: center;
}

#progressBar {
  width: 100%;
  height: 22px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

#progressFill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .25s ease-in-out;
}

#progressText {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

/* =========================
   STATUS
========================= */

#status {
  margin-top: 14px;
  font-size: 20px;
  text-align: center;
}

/* =========================
   UPLOADED FILES
========================= */

#uploadedWrap {
  margin-top: 16px;
}

#uploadedTitle {
  font-weight: 800;
  margin: 0 0 8px;
  text-align: center;
}

#uploadedList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.uploaded-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff !important;
}

.uploaded-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.uploaded-item a:hover {
  text-decoration: underline;
}

/* DELETE */

.btn-del {
  border: 2px solid var(--danger);
  color: var(--danger);
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  transition: .2s ease;
}

.btn-del:hover {
  background: rgba(239, 68, 68, 0.08);
}

.btn-del:focus {
  outline: 3px solid rgba(239, 68, 68, 0.15);
  outline-offset: 2px;
}

/* =========================
   CUSTOM UPLOAD SVG ICON
========================= */

.uppy-Dashboard-AddFiles-icon {
  display: none !important;
}

.uppy-Dashboard-AddFiles-inner {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.uppy-Dashboard-AddFiles-title::before {
  content: "";
  display: block;
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  background-color: var(--accent);

  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32 44V22M32 22L23 31M32 22L41 31' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M22 46H18C10.8 46 5 40.2 5 33C5 26.6 9.7 21.2 15.9 20.2C18.2 12.9 24.8 8 32.5 8C41.4 8 48.8 14.7 49.8 23.4C55.1 24.6 59 29.3 59 35C59 41.1 54.1 46 48 46H42' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;

  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32 44V22M32 22L23 31M32 22L41 31' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M22 46H18C10.8 46 5 40.2 5 33C5 26.6 9.7 21.2 15.9 20.2C18.2 12.9 24.8 8 32.5 8C41.4 8 48.8 14.7 49.8 23.4C55.1 24.6 59 29.3 59 35C59 41.1 54.1 46 48 46H42' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.uppy-Dashboard-browse,
.uppy-DashboardContent-addMoreCaption,
.uppy-Dashboard-AddFiles-title button,
.uppy-c-btn-link,
.uppy-DashboardTab-btn {
  color: var(--accent) !important;
  opacity: 1 !important;
}