:root {
  --bg: #f5f6fb;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --success: #15803d;
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 22px rgba(15, 23, 42, 0.06);
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, #e0f2fe 0, transparent 40%),
    radial-gradient(circle at 88% 92%, #fef3c7 0, transparent 45%),
    var(--bg);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.35);
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
}

.header-meta {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.header-meta span {
  font-weight: 600;
  color: var(--text);
}

.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: flex-start;
  }
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 18px 18px 20px;
}

.card + .card {
  margin-top: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.piece-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.piece-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.alert-success {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.alert-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}

.alert-text {
  font-size: 12px;
  color: #14532d;
  margin-top: 4px;
}

.form {
  margin-top: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.form-input,
.form-textarea,
.form-file {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
}

.form-textarea {
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-file:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
}

.file-wrap {
  display: grid;
  gap: 6px;
}

.file-help {
  font-size: 11px;
  color: var(--muted);
}

.field-error,
.form-error {
  font-size: 11px;
  color: #b91c1c;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 10px;
  border-radius: 10px;
  margin-top: 10px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .form-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.35);
}

.btn-primary:hover {
  background: #0f5f57;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.form-note {
  font-size: 11px;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #1f2937;
  display: grid;
  gap: 6px;
}

.steps strong {
  color: var(--accent);
}

.team-avatars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}

.team-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e5e7eb;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .team-avatars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .team-avatars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
