:root{
  --bg:#f1f5f9;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --primary:#2563eb;
  --success:#16a34a;
  --danger:#dc2626;
  --ghost:#eef2f7;
  --warning-bg:#fffbeb;
  --warning-text:#92400e;
  --success-bg:#ecfdf5;
  --success-text:#065f46;
}

*{
  box-sizing:border-box;
}

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

.app{
  max-width:560px;
  margin:0 auto;
  padding:16px;
}

.header{
  margin-bottom:14px;
}

.header h1{
  margin:0 0 4px 0;
  font-size:24px;
}

.small{
  font-size:12px;
  color:var(--muted);
}

.card{
  background:var(--card);
  border-radius:16px;
  padding:18px;
  margin-bottom:14px;
  box-shadow:0 6px 20px rgba(0,0,0,.05);
}

.status-card{
  border:1px solid rgba(37,99,235,.08);
}

.section-title{
  font-size:17px;
  font-weight:700;
  margin-bottom:10px;
}

.label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}

input,
select,
textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  font-size:15px;
  background:#fff;
  outline:none;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#93c5fd;
}

textarea{
  resize:vertical;
}

.row{
  display:flex;
  gap:10px;
}

.btn{
  width:100%;
  border:none;
  border-radius:12px;
  padding:13px 14px;
  font-size:15px;
  cursor:pointer;
  transition:.18s ease;
}

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

.btn-primary{
  background:var(--primary);
  color:#fff;
}

.btn-success{
  background:var(--success);
  color:#fff;
}

.btn-danger{
  background:var(--danger);
  color:#fff;
}

.btn-ghost{
  background:var(--ghost);
  color:var(--text);
}

.btn-inline{
  width:auto;
  min-width:108px;
  flex:0 0 auto;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  background:#e5e7eb;
  color:#374151;
  font-size:13px;
  font-weight:700;
  margin-bottom:10px;
}

.badge.warning{
  background:var(--warning-bg);
  color:var(--warning-text);
}

.badge.success{
  background:var(--success-bg);
  color:var(--success-text);
}

.status-text{
  font-size:14px;
  color:#374151;
  line-height:1.5;
}

.step-note{
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px;
  line-height:1.5;
}

.status-line{
  margin-top:10px;
  font-size:13px;
  color:#374151;
  line-height:1.5;
}

.photo-group{
  margin-top:14px;
}

.preview{
  margin-top:10px;
  border:1px dashed var(--line);
  border-radius:12px;
  min-height:80px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:10px;
  color:var(--muted);
  background:#fafafa;
}

.preview img{
  width:100%;
  border-radius:10px;
  display:block;
}

.empty-preview{
  font-size:13px;
}

.job-info{
  margin-top:12px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:12px;
}

.job-info.empty{
  color:var(--muted);
  font-size:14px;
}

.job-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.job-label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:4px;
}

.job-value{
  display:block;
  font-size:14px;
  font-weight:600;
  color:var(--text);
  word-break:break-word;
}

.divider{
  height:1px;
  background:var(--line);
  margin:14px 0;
}

.team-list{
  margin-top:8px;
}

.team-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #f3f4f6;
  font-size:14px;
  cursor:pointer;
}

.team-item:last-child{
  border-bottom:none;
}

.team-item input{
  width:18px;
  height:18px;
  margin:0;
  flex:0 0 auto;
}

.is-disabled{
  opacity:.72;
}

.hidden{
  display:none;
}

@media (max-width:520px){
  .job-grid{
    grid-template-columns:1fr;
  }

  .row{
    flex-direction:column;
  }

  .btn-inline{
    width:100%;
  }
}