.page-upload .login-page {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 104px 60px 40px;
}

.page-results .login-page {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 104px 60px 40px;
}

body.page-authenticated.page-app-loading #upload-section,
body.page-authenticated.page-app-loading #results-section {
  visibility: hidden;
}

body.page-authenticated.session-ready #upload-section:not(.hidden),
body.page-authenticated.session-ready #results-section:not(.hidden) {
  visibility: visible;
}

.upload-layout {
  display: flex;
  align-items: center;
  gap: 54px;
  width: 100%;
  max-width: 1074px;
  margin: 0 auto;
}

.upload-settings {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 482px;
  flex: none;
}

.upload-settings-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-settings-title {
  margin: 0;
  font-family: 'Benzin-Bold', 'Arial Black', sans-serif;
  font-size: 32px;
  line-height: 120%;
  text-transform: uppercase;
  color: #0d0d0d;
}

.upload-settings-subtitle {
  margin: 0;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 12px;
  line-height: 130%;
  color: #0d0d0d;
}

.upload-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.upload-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.upload-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.upload-option-box {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid #991157;
  border-radius: 4px;
  background: #fff;
}

.upload-option input:checked + .upload-option-box {
  background: #991157;
  border-color: #991157;
}

.upload-option input:checked + .upload-option-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
}

.upload-option-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-option-label {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  line-height: 120%;
  color: #0d0d0d;
}

.upload-option-desc {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 12px;
  line-height: 130%;
  color: rgba(13, 13, 13, 0.6);
}

.upload-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 538px;
  min-height: 604px;
  padding: 28px;
  background: #fff;
  border: 2px dashed rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.12);
  border-radius: 32px;
  flex: none;
}

.upload-panel.is-dragover {
  border-color: #991157;
  background: rgba(153, 17, 87, 0.03);
}

.upload-stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 12px;
  line-height: 130%;
  color: #0d0d0d;
}

.upload-stats-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.upload-stats-num {
  font-size: 16px;
  line-height: 130%;
}

.upload-drop-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 28px 0 20px;
  text-align: center;
}

.upload-drop-title {
  margin: 0;
  font-family: 'Benzin-Bold', 'Arial Black', sans-serif;
  font-size: 20px;
  line-height: 120%;
  text-transform: uppercase;
  color: #0d0d0d;
}

.upload-drop-title-accent {
  color: #991157;
}

.upload-drop-formats {
  margin: 0;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 12px;
  line-height: 130%;
  color: #0d0d0d;
}

.upload-file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-bottom: 20px;
}

.upload-file-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-file-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.upload-file-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  object-fit: cover;
  background: #f6f6f6;
}

.upload-file-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.upload-file-name-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-file-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 17px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-size {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  line-height: 13px;
  color: rgba(0, 0, 0, 0.5);
}

.upload-file-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  line-height: 12px;
  color: #11d331;
}

.upload-file-status svg {
  width: 9px;
  height: 6px;
}

.upload-file-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.upload-file-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-file-progress {
  flex: 1;
  height: 6px;
  background: #e2e1e1;
  border-radius: 200px;
  overflow: hidden;
}

.upload-file-progress-fill {
  height: 100%;
  background: #991157;
  border-radius: 190px;
  width: 0%;
  transition: width 0.15s linear;
}

.upload-file-percent {
  flex: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  line-height: 13px;
  color: #000;
  min-width: 23px;
}

.upload-file-remove {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 100px;
  background: #991157;
  color: #fff;
  cursor: pointer;
}

.upload-file-remove svg {
  width: 6px;
  height: 6px;
}

.upload-file-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.upload-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.upload-btn-select {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 49px;
  padding: 15px 24px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  background: #fff;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 120%;
  color: #000;
  cursor: pointer;
}

.upload-btn-submit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 49px;
  padding: 15px 24px;
  border: none;
  border-radius: 12px;
  background: #991157;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 120%;
  color: #fff;
  cursor: pointer;
}

.upload-btn-submit:hover {
  background: #7d0e48;
}

.upload-btn-submit:disabled,
.upload-btn-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.upload-error {
  margin: 0 0 12px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 12px;
  line-height: 130%;
  color: #c5221f;
  text-align: center;
}

/* Results page */
.results-layout {
  align-items: center;
}

.results-settings {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 483px;
  flex: none;
}

.results-settings-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
}

.results-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.results-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 12px;
  line-height: 130%;
  color: #0d0d0d;
}

.results-btn-outline-wide {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 364px;
  max-width: 100%;
  height: 49px;
  padding: 15px 24px;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  background: #fff;
  font-family: 'Manrope', system-ui, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: #000;
  cursor: pointer;
  flex: none;
}

.results-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 538px;
  min-height: 604px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.12);
  border-radius: 32px;
  flex: none;
}

.results-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 auto;
  max-height: 276px;
  overflow-y: auto;
}

.results-link-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 24px;
}

.results-link-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.results-link-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.results-link-path {
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 17px;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-link-key {
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  line-height: 15px;
  color: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-link-url {
  flex: 1;
  min-width: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 17px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.results-copy-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 100px;
  background: #991157;
  color: #fff;
  cursor: pointer;
}

.results-copy-btn svg {
  display: block;
  width: 12px;
  height: 12px;
}

.results-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.results-divider {
  width: 100%;
  height: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.results-general {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.results-general-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.results-general .results-copy-btn {
  flex: none;
  margin-top: 20px;
}

.results-general-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}

.results-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.results-btn-outline {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 172px;
  height: 49px;
  padding: 15px 24px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  background: #fff;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 120%;
  color: #000;
  cursor: pointer;
}

.results-btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 49px;
  padding: 15px 24px;
  border: none;
  border-radius: 12px;
  background: #991157;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 120%;
  color: #fff;
  cursor: pointer;
}

.results-btn-primary:hover {
  background: #7d0e48;
}

.results-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: #0d0d0d;
  color: #fff;
  border-radius: 8px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 12px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.results-toast.is-visible {
  opacity: 1;
}

.upload-file-input {
  display: none;
}

@media (max-width: 1100px) {
  .page-upload .login-page,
  .page-results .login-page {
    padding: 96px 24px 24px;
  }

  .page-upload .login-page {
    align-items: center;
    justify-content: center;
  }

  .upload-layout {
    flex-direction: column;
    gap: 32px;
    max-width: 538px;
  }

  .results-layout {
    align-items: stretch;
  }

  .results-btn-outline-wide {
    width: 100%;
  }

  .upload-settings,
  .upload-panel,
  .results-settings,
  .results-panel {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .upload-panel {
    min-height: 520px;
    padding: 20px;
    border-radius: 24px;
  }

  .upload-drop-title {
    font-size: 16px;
  }

  .upload-settings-title {
    font-size: 28px;
  }
}
