:root {
  color-scheme: light;
  --green: #0c8d66;
  --green2: #13aa79;
  --ink: #15221e;
  --muted: #6c7b76;
  --line: #dfe8e4;
  --bg: #f4f8f6;
  --danger: #c43b52;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--ink); }
button, input, textarea { font: inherit; }
.hidden { display: none !important; }
.shell { width: min(920px, calc(100% - 28px)); margin: auto; padding: 34px 0 60px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.brand-mark, .app-icon { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--green2), var(--green)); font-weight: 800; box-shadow: 0 12px 30px rgba(12,141,102,.22); }
.brand-mark { width: 48px; height: 48px; border-radius: 15px; font-size: 23px; }
.brand h1 { font-size: 24px; margin: 0; }
.brand p, .muted { margin: 5px 0 0; color: var(--muted); }
.card, .release-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(20,49,40,.05); }
.login-card { max-width: 460px; margin: 70px auto; padding: 28px; }
.login-card h2, .upload-card h3 { margin-top: 0; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; font-weight: 650; }
input, textarea { width: 100%; border: 1px solid #cad8d2; border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink); outline: 0; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(12,141,102,.12); }
button, .link-button { border: 0; border-radius: 12px; padding: 11px 16px; cursor: pointer; text-decoration: none; text-align: center; font-weight: 700; }
.primary { background: linear-gradient(135deg, var(--green2), var(--green)); color: #fff; }
.primary:disabled { opacity: .55; cursor: wait; }
.plain { background: #edf5f2; color: #22634f; }
.danger { background: #fff0f2; color: var(--danger); }
.toolbar, .list-title, .release-top, .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toolbar { margin-bottom: 20px; }
.toolbar h2, .list-title h3 { margin: 0; }
.upload-card { padding: 24px; }
.password-card { margin-top: 16px; padding: 0 24px; }
.password-card summary { cursor: pointer; padding: 20px 0; font-weight: 800; color: var(--green); list-style-position: inside; }
.password-card[open] { padding-bottom: 24px; }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.file-box { border: 1px dashed #9dbbb0; border-radius: 14px; padding: 17px; background: #f7fbf9; cursor: pointer; }
.file-box input { display: none; }
.file-box span { color: var(--green); font-weight: 700; }
.progress { height: 8px; background: #e2ece8; border-radius: 99px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--green2); transition: width .15s; }
.list-title { margin: 28px 0 12px; }
.release-list { display: grid; gap: 12px; }
.release-card { padding: 18px; }
.release-card h4 { font-size: 18px; margin: 0; }
.badge { white-space: nowrap; color: var(--green); background: #e8f7f1; border-radius: 99px; padding: 6px 10px; font-size: 13px; }
.share-input { margin: 14px 0; background: #f6f8f7; color: #476059; }
.actions { justify-content: flex-start; }
.small { padding: 10px 14px; }
.empty { text-align: center; padding: 42px; border: 1px dashed #b7c9c2; border-radius: 18px; color: var(--muted); }
.toast { position: fixed; z-index: 10; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; padding: 12px 18px; border-radius: 99px; background: #153d31; color: #fff; box-shadow: 0 8px 30px #0003; }
.toast.bad { background: #a72f42; }
.download-body { min-height: 100vh; background: radial-gradient(circle at 50% 0,#def5eb 0,transparent 42%), var(--bg); }
.download-shell { width: min(560px, calc(100% - 32px)); margin: auto; padding: 70px 0 max(60px,env(safe-area-inset-bottom)); text-align: center; }
.app-icon { width: 90px; height: 90px; border-radius: 25px; margin: 0 auto 20px; font-size: 42px; }
.eyebrow { color: var(--green); font-weight: 750; }
.download-shell h1 { font-size: 32px; margin: 8px 0; }
.version { color: var(--muted); font-size: 17px; }
.download-button { display: block; margin: 28px 0 18px; padding: 15px; border-radius: 15px; background: linear-gradient(135deg,var(--green2),var(--green)); color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 12px 30px rgba(12,141,102,.22); }
.download-button.disabled { opacity: .45; pointer-events: none; }
.download-details, .notes { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-top: 16px; padding: 18px; text-align: left; }
.download-details div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf2ef; }
.download-details div:last-child { border: 0; }
.download-details span { color: var(--muted); }
.hash { font-size: 11px; word-break: break-all; }
.notes h2 { font-size: 16px; margin: 0 0 9px; }
.notes p { margin: 0; white-space: pre-wrap; line-height: 1.7; }
.install-tip { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 22px 12px; }
.error { color: var(--danger); font-weight: 700; }
@media (max-width: 620px) {
  .shell { padding-top: 20px; }
  .grid.two { grid-template-columns: 1fr; }
  .toolbar { align-items: flex-start; }
  .release-top { align-items: flex-start; }
  .actions { display: grid; grid-template-columns: 1fr 80px 70px; }
  .download-shell { padding-top: 48px; }
  .download-shell h1 { font-size: 27px; }
}
