.tfpd-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0;
}

.tfpd-header {
  margin-bottom: 24px;
}

.tfpd-header h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
}

.tfpd-header p {
  margin: 0;
  opacity: 0.85;
}

.tfpd-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.tfpd-summary-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  text-align: center;
}

.tfpd-summary-number {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.tfpd-summary-label {
  font-size: 14px;
  opacity: 0.8;
}

.tfpd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.tfpd-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.tfpd-status-prepared {
  background: #e5e7eb;
}

.tfpd-status-applied {
  background: #fed7aa;
}

.tfpd-status-ready {
  background: #d9f99d;
}

.tfpd-card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.tfpd-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tfpd-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tfpd-card-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tfpd-card-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.tfpd-status-badge {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.65);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.tfpd-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.tfpd-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tfpd-meta-label {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
}

.tfpd-meta-value {
  font-size: 15px;
  word-break: break-word;
}

.tfpd-actions {
  margin-top: auto;
}

.tfpd-download-btn,
.tfpd-admin-btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  background: #166534;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tfpd-download-btn:hover,
.tfpd-admin-btn:hover {
  opacity: 0.92;
}

.tfpd-note {
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
}

.tfpd-note-warning {
  font-weight: 600;
}

.tfpd-message {
  padding: 16px 18px;
  border-radius: 14px;
  margin: 20px 0;
}

.tfpd-message-error {
  background: #fee2e2;
  color: #991b1b;
}

.tfpd-message-success {
  background: #dcfce7;
  color: #166534;
}

.tfpd-message-warning {
  background: #fef3c7;
  color: #92400e;
}

.tfpd-upload-wrap .tfpd-header {
  margin-bottom: 20px;
}

.tfpd-admin-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  margin-bottom: 24px;
}

.tfpd-search-form,
.tfpd-upload-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tfpd-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tfpd-label {
  font-size: 14px;
  font-weight: 700;
}

.tfpd-input,
.tfpd-file-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  font-size: 15px;
  line-height: 1.3;
  box-sizing: border-box;
}

.tfpd-input:focus,
.tfpd-file-input:focus {
  outline: none;
  border-color: #166534;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.tfpd-admin-grid {
  margin-top: 8px;
}

.tfpd-admin-card .tfpd-card-content {
  gap: 12px;
}

@media (max-width: 768px) {
  .tfpd-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tfpd-header h2 {
    font-size: 26px;
  }

  .tfpd-grid {
    grid-template-columns: 1fr;
  }
}