.upload-page { display: flex; align-items: flex-start; justify-content: center; padding: 60px 24px 40px; min-height: calc(100vh - 54px); }
.upload-inner { width: 100%; max-width: 620px; }
.hero { text-align: center; margin-bottom: 40px; animation: fadeUp .4s ease both; }
.hero h2 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 10px; }
.hero p { color: var(--text2); font-size: 15px; max-width: 420px; margin: 0 auto; }

.drop-card {
  background: var(--bg2); border: 1.5px dashed var(--border2);
  border-radius: 16px; padding: 40px 32px; text-align: center;
  cursor: pointer; position: relative;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  margin-bottom: 16px;
}
.drop-card:hover, .drop-card.drag-over {
  border-color: var(--accent); background: var(--bg3);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.drop-card input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-icon { margin-bottom: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.drop-icon svg { opacity: .45; }
.drop-title { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.drop-sub { font-size: 13px; color: var(--text2); }
.drop-card.has-file { border-style: solid; border-color: var(--accent); }
.file-pill {
  display: none; align-items: center; gap: 8px; margin-top: 14px;
  background: var(--bg4); border-radius: 8px; padding: 8px 14px;
  font-family: var(--mono); font-size: 12px; color: var(--text);
}
.drop-card.has-file .file-pill { display: flex; }
.file-pill-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diff-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: 6px; }

.proj-step { margin-bottom: 20px; animation: fadeUp .35s ease both; }
.proj-step-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text3); margin-bottom: 10px;
}
.proj-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px; margin-bottom: 10px;
}
.proj-card {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px 16px; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  position: relative; user-select: none;
}
.proj-card:hover { border-color: var(--border2); background: var(--bg3); }
.proj-card.selected {
  border-color: var(--accent); background: var(--bg3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.proj-card.new-card {
  border-style: dashed; display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-height: 86px;
  color: var(--text3); gap: 4px;
}
.proj-card.new-card:hover { color: var(--accent); border-color: var(--accent); }
.proj-card.new-card.selected { color: var(--accent); }
.proj-card-check {
  position: absolute; top: 8px; right: 8px; width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%; display: none;
  align-items: center; justify-content: center;
}
.proj-card.selected .proj-card-check { display: flex; }
.proj-card-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-card-meta { font-size: 11px; color: var(--text3); line-height: 1.5; }
.proj-card-flash { font-size: 12px; font-weight: 600; color: var(--text2); margin-top: 4px; }
.proj-delta { font-size: 10px; font-weight: 600; margin-left: 4px; }
.proj-delta.up   { color: #f06060; }
.proj-delta.down { color: var(--green); }
.proj-new-input {
  width: 100%; background: none; border: none; outline: none;
  font-size: 13px; font-weight: 600; color: var(--text);
  font-family: inherit; text-align: center; padding: 0;
}
.proj-new-input::placeholder { color: var(--text3); font-weight: 400; }
.proj-or {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0; color: var(--text3);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
}
.proj-or::before, .proj-or::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.proj-snapshot-btn {
  position: relative;
  background: var(--bg2); border: 1.5px solid var(--border); border-radius: 11px;
  color: var(--text2); cursor: pointer; padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; width: 100%;
  text-align: left;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}
.proj-snapshot-btn:hover {
  color: var(--text); border-color: var(--border2);
  background: var(--bg3); transform: translateY(-1px);
}
.proj-snapshot-btn.selected {
  color: var(--text); border-color: var(--accent);
  background: linear-gradient(135deg, rgba(96, 165, 250, .14), rgba(96, 165, 250, .04));
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .12);
}
.proj-snapshot-check {
  position: absolute; top: 10px; right: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
  display: none; align-items: center; justify-content: center;
}
.proj-snapshot-btn.selected .proj-snapshot-check { display: flex; }
.proj-snapshot-icon {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: color .15s, background .15s, border-color .15s;
}
.proj-snapshot-btn:hover .proj-snapshot-icon { color: var(--text); }
.proj-snapshot-btn.selected .proj-snapshot-icon {
  color: var(--accent); background: rgba(96, 165, 250, .12);
  border-color: rgba(96, 165, 250, .35);
}
.proj-snapshot-text { flex: 1; min-width: 0; padding-right: 28px; }
.proj-snapshot-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 3px; line-height: 1.2;
}
.proj-snapshot-sub {
  font-size: 12px; color: var(--text3); line-height: 1.5;
}
.proj-snapshot-btn.selected .proj-snapshot-sub { color: var(--text2); }
.proj-context {
  display: none; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 12px; color: var(--text2);
}
.proj-context.show { display: flex; }
.proj-context-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.proj-context-name { font-weight: 600; color: var(--text); }

.budget-row { display:flex; gap:12px; margin-bottom:16px; }
.budget-field { flex:1; }
.budget-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--text3); display:block; margin-bottom:6px; }
.budget-input { width:100%; padding:9px 14px; border-radius:8px; border:1px solid var(--border2); background:var(--bg3); color:var(--text); font-size:13px; outline:none; transition:border-color .15s; box-sizing:border-box; }
.budget-input:focus { border-color:var(--accent); }
.budget-input::placeholder { color:var(--text3); }

@media (max-width: 768px) {
  .upload-page { padding: 32px 14px 24px; }
  .hero h2 { font-size: 22px; }
  .hero p { font-size: 13px; }
  .drop-card { padding: 28px 18px; }
}
