.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(110, 168, 255, 0.4);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.2), rgba(61, 214, 198, 0.14));
  color: var(--text);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

.file-picker:active {
  transform: scale(0.98);
}

.file-input:focus-visible + .file-picker {
  outline: 3px solid rgba(110, 168, 255, 0.3);
  outline-offset: 2px;
}

.file-input:disabled + .file-picker {
  opacity: 0.55;
  cursor: not-allowed;
}

.file-name,
.upload-note {
  margin: 0;
  overflow-wrap: anywhere;
}

.file-name {
  color: var(--text);
  font-size: 0.88rem;
}

.upload-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.upload-debug {
  margin: 0;
  padding: 0.85rem;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 107, 122, 0.35);
  border-radius: 12px;
  background: rgba(255, 107, 122, 0.08);
  color: #ffd4d9;
  font: 0.76rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.upload-debug.hidden {
  display: none;
}

.tab-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
