/* serinreader.com: the upload page (LCS-110). Plain and friendly; the app's colours. */
:root {
  --ground: #f5f5f2;
  --card: #ffffff;
  --ink: #1e1e3c;
  --body: #3a3a55;
  --muted: #6b6b80;
  --line: #e2e2dc;
  --accent: #3f5aa6;
  --accent-soft: #e8ecf8;
  --ok: #2f7d4f;
  --bad: #b3261e;
  --bar: #3f5aa6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121212;
    --card: #1d1d22;
    --ink: #ececf2;
    --body: #cfcfdc;
    --muted: #a0a0b4;
    --line: #34343e;
    --accent: #9fb2ff;
    --accent-soft: #252b40;
    --ok: #7fd39f;
    --bad: #ff8a80;
    --bar: #9fb2ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}
a { color: var(--accent); }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 44rem; margin: 0 auto; padding: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; }
.langs { display: flex; gap: 4px; }
.langs button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 13px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
main { max-width: 44rem; margin: 0 auto; padding: 0 16px 24px; }
h1 { font-size: 1.7rem; line-height: 1.3; margin: 12px 0 6px; }
h2 { font-size: 1.1rem; margin: 0 0 6px; }
.lead { color: var(--body); margin: 0 0 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 20px; margin: 0 0 16px;
}
.muted { color: var(--muted); font-size: 0.92rem; }
.hint { color: var(--muted); font-size: 0.92rem; }
.error { color: var(--bad); font-weight: 600; }
.gbutton { min-height: 44px; margin: 10px 0 4px; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.who { margin: 0; overflow-wrap: anywhere; }
.link { background: none; border: none; color: var(--accent); font: inherit; cursor: pointer; padding: 4px 0; text-decoration: underline; }
#upload h2 { margin-top: 8px; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 190px; padding: 20px; margin: 6px 0 10px; text-align: center; cursor: pointer;
  border: 2px dashed var(--muted); border-radius: 24px; background: var(--card);
  transition: background 0.15s, border-color 0.15s;
}
.drop:hover, .drop:focus-within, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { font-size: 2rem; line-height: 1; color: var(--accent); }
.drop-title { font-weight: 800; font-size: 1.15rem; }
.drop-sub { color: var(--muted); font-size: 0.92rem; }
.files { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.files li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
}
.files .name { font-weight: 600; overflow-wrap: anywhere; }
.files .size { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.files .state { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted); }
.files .state.ok { color: var(--ok); }
.files .state.bad { color: var(--bad); }
.files progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: var(--bar); }
.files button { grid-column: 2; grid-row: 1; }
.notes ul { margin: 0 0 8px; padding-left: 1.2em; color: var(--body); }
.notes p { color: var(--body); margin: 6px 0; }
.privacy { font-weight: 600; color: var(--ink) !important; }
.foot { max-width: 44rem; margin: 0 auto; padding: 8px 16px 32px; color: var(--muted); font-size: 0.85rem; }
[hidden] { display: none !important; }
