:root {
  --ink: #1b1f24;
  --muted: #5b6472;
  --line: #d8dee5;
  --accent: #2457c5;
  --accent-ink: #ffffff;
  --bg: #f5f7fa;
  --card: #ffffff;
  --ok: #1a7f37;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  color: var(--accent);
  flex-shrink: 0;
}

header h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: 3px;
  line-height: 1;
}

.name-expansion {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.tagline {
  margin: 14px 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
}

.subtitle {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
}

.summary {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #eaf6ee;
  border: 1px solid #b9dfc6;
  border-radius: 8px;
  color: var(--ok);
  font-size: 14px;
  font-weight: 600;
}

.dropzone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 48px 24px;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: #eef3ff;
}

.dropzone p {
  margin: 0 0 8px;
  color: var(--muted);
}

#chooseBtn, #downloadAllBtn {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#chooseBtn:hover, #downloadAllBtn:hover {
  filter: brightness(1.08);
}

#clearBtn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}

.results {
  margin-top: 32px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.results-header h2 {
  font-size: 18px;
  margin: 0;
}

.results-actions {
  display: flex;
  gap: 8px;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-row img.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: #eee;
}

.file-row .info {
  flex: 1;
  min-width: 0;
}

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

.file-row .sizes {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.file-row .sizes .new-size {
  color: var(--ok);
  font-weight: 600;
}

.file-row .status {
  font-size: 13px;
  color: var(--muted);
  min-width: 90px;
  text-align: right;
}

.file-row a.download {
  background: var(--ok);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.file-row.error .status {
  color: #b42318;
}

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer .privacy {
  margin-top: 8px;
  font-size: 12px;
}

footer .privacy a {
  color: var(--accent);
}

footer .disclaimer {
  margin-top: 16px;
  font-size: 11px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

footer .credit {
  margin-top: 10px;
  font-size: 12px;
}

footer .credit a {
  color: var(--accent);
}
