:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2428;
  background: #f4f3ef;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f4f3ef; }
button, input { font: inherit; }
.shell { width: min(680px, 100%); margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 14px; margin: 8px 2px 22px; }
.mark { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: #202427; color: white; font-size: 27px; font-weight: 700; }
h1 { margin: 0; font-size: 27px; letter-spacing: -.4px; }
.subtitle { margin: 3px 0 0; color: #666b6f; font-size: 14px; }
.panel { background: #fff; border: 1px solid #e0dfda; border-radius: 18px; padding: 20px; box-shadow: 0 7px 28px rgba(31,36,40,.06); margin-bottom: 16px; }
.hero { text-align: center; padding: 24px 20px; }
.center { text-align: center; color: #62676b; }
.hidden { display: none !important; }
h2 { font-size: 19px; margin: 0 0 15px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input { width: 100%; border: 1px solid #cfd1d2; border-radius: 12px; padding: 12px 13px; background: #fff; color: #1f2428; }
button { border: 0; border-radius: 13px; padding: 13px 18px; cursor: pointer; }
.primary { width: 100%; background: #202427; color: white; font-weight: 650; margin-top: 16px; min-height: 50px; }
.primary:disabled { opacity: .5; }
.choose { font-size: 18px; padding: 17px; margin-top: 18px; }
.device-row { display: inline-flex; align-items: center; gap: 7px; color: #5a605f; font-size: 13px; }
.ok-dot { width: 9px; height: 9px; background: #2f8f58; border-radius: 50%; }
.hint { color: #6e7376; font-size: 13px; margin: 11px 0 0; line-height: 1.35; }
.hint.small { font-size: 12px; margin-top: 16px; }
.error { color: #a52b2b; font-size: 13px; }
.upload-card { padding: 15px 0; border-top: 1px solid #ecece8; }
.upload-card:first-child { border-top: 0; padding-top: 0; }
.file-row { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.file-name { font-weight: 650; word-break: break-all; }
.file-size { color: #74797c; font-size: 12px; white-space: nowrap; }
.progress { height: 9px; border-radius: 999px; background: #e9e9e5; overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; width: 0; background: #202427; transition: width .18s linear; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; color: #686d70; }
.status.done { color: #237446; font-weight: 600; }
.status.error { color: #a52b2b; }
.small-button { background: #ecece8; color: #262a2d; padding: 7px 10px; border-radius: 9px; min-width: 80px; }
.privacy { text-align: center; color: #777c7f; font-size: 11px; line-height: 1.45; padding: 3px 18px; }
.spinner { width: 28px; height: 28px; margin: 4px auto 12px; border: 3px solid #ddd; border-top-color: #333; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) {
  .shell { padding-left: 13px; padding-right: 13px; }
  .panel { border-radius: 16px; padding: 17px; }
  h1 { font-size: 24px; }
}
