:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #162033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(62, 99, 221, 0.12), transparent 28%),
    linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(22, 32, 51, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(47, 72, 122, 0.08);
  backdrop-filter: blur(8px);
}

.hero {
  padding: 32px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: #5670b8;
  font-weight: 700;
}

.hero h1,
.uploader h2 {
  margin: 0;
  line-height: 1.1;
}

.lede,
.uploader-header p,
.state-panel p,
.not-found-note,
.meta-row,
.drop-zone-subtitle {
  color: #52617d;
}

.uploader {
  padding: 28px;
}

.uploader-header,
.meta-row,
.share-row,
.share-actions,
.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.uploader-header {
  margin-bottom: 20px;
}

.drop-zone {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 28px;
  border-radius: 22px;
  border: 2px dashed rgba(86, 112, 184, 0.35);
  background: linear-gradient(180deg, rgba(86, 112, 184, 0.06), rgba(86, 112, 184, 0.02));
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.drop-zone:hover,
.drop-zone.is-active {
  border-color: #3e63dd;
  background: linear-gradient(180deg, rgba(62, 99, 221, 0.1), rgba(62, 99, 221, 0.03));
  transform: translateY(-1px);
}

.drop-zone-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #20315c;
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.drop-zone-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.meta-row {
  margin: 18px 0;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.link-button {
  border-radius: 999px;
  border: none;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.primary-button {
  background: #3e63dd;
  color: white;
  font-weight: 700;
}

.primary-button:disabled {
  background: #a8b5de;
  cursor: not-allowed;
}

.secondary-button,
.link-button {
  background: #e8eefc;
  color: #20315c;
}

.state-panel {
  border-radius: 18px;
  padding: 18px 20px;
  background: #f8fbff;
  border: 1px solid rgba(62, 99, 221, 0.12);
}

.success-panel {
  background: #f2fcf6;
  border-color: rgba(33, 150, 83, 0.18);
}

.error-panel {
  background: #fff4f4;
  border-color: rgba(213, 68, 77, 0.18);
}

.is-hidden {
  display: none;
}

.progress-bar {
  width: 100%;
  height: 12px;
  margin: 10px 0 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #dbe5fd;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3e63dd, #5b7eff);
  transition: width 0.15s ease;
}

.share-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.share-row {
  align-items: stretch;
}

.share-row input {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(22, 32, 51, 0.12);
  padding: 12px 14px;
  background: white;
}

.copy-status {
  min-height: 1.5em;
  color: #1b7f43;
  font-weight: 600;
}

.team-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.team-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.team-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid rgba(86, 112, 184, 0.35);
  background: white;
  color: #52617d;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.team-btn:hover {
  border-color: #3e63dd;
  color: #3e63dd;
}

.team-btn.is-selected {
  background: #3e63dd;
  border-color: #3e63dd;
  color: white;
}

.search-section {
  padding: 28px;
  margin-top: 20px;
}

.search-header {
  margin-bottom: 16px;
}

.search-header h2 {
  margin: 0 0 6px;
  line-height: 1.1;
}

.search-header p {
  margin: 0;
  color: #52617d;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(22, 32, 51, 0.12);
  background: white;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: #3e63dd;
  box-shadow: 0 0 0 3px rgba(62, 99, 221, 0.12);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid rgba(62, 99, 221, 0.12);
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-result-filename {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-team {
  font-size: 0.85rem;
  color: #5670b8;
}

.search-result-copy {
  flex-shrink: 0;
}

.search-empty,
.search-loading {
  text-align: center;
  padding: 24px;
  color: #52617d;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 960px);
    padding: 20px 0 32px;
  }

  .hero,
  .uploader {
    padding: 20px;
    border-radius: 20px;
  }

  .uploader-header,
  .meta-row,
  .share-row,
  .share-actions,
  .progress-header {
    flex-direction: column;
    align-items: stretch;
  }

  .drop-zone {
    min-height: 220px;
    padding: 22px;
  }

  .primary-button,
  .secondary-button,
  .link-button {
    width: 100%;
  }
}
