:root {
  --bg: #14161A;
  --bg-elev: #1E2128;
  --bg-elev-2: #262A33;
  --yellow: #FFC300;
  --yellow-dim: #B38F00;
  --red: #E63946;
  --green: #3DDC97;
  --blue: #378ADD;
  --amber: #EF9F27;
  --text: #F2F2F0;
  --text-dim: #9AA0AC;
  --radius: 14px;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

.stripe-bar {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 14px, #14161A 14px 28px);
}

#app { max-width: 480px; margin: 0 auto; padding: 24px 20px 40px; min-height: 100vh; }

.screen { display: none; animation: fadeIn .25s ease; }
.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 600;
  color: #14161A;
  background: var(--yellow);
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .03em;
  color: var(--text-dim);
  margin: 24px 0 12px;
  text-transform: uppercase;
}

.lead { color: var(--text-dim); font-size: 15px; line-height: 1.5; }
.hint { color: var(--text-dim); font-size: 13px; }
.error-text { color: var(--red); font-size: 13px; }
.hidden { display: none; }

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.points-badge {
  background: var(--bg-elev);
  border: 1px solid var(--bg-elev-2);
  border-radius: var(--radius);
  padding: 8px 14px;
  text-align: center;
}
.points-badge span#userPoints {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--yellow);
}
.points-label { font-size: 11px; color: var(--text-dim); }

.btn {
  width: 100%;
  border: none;
  border-radius: var(--radius);
  padding: 15px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: transform .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--yellow); color: #14161A; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--bg-elev-2); }

.btn-back {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  padding: 0;
  margin-bottom: 16px;
  cursor: pointer;
}

.risk-list { display: flex; flex-direction: column; gap: 10px; }

.risk-card {
  display: flex;
  gap: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--bg-elev-2);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  text-align: left;
}
.risk-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.risk-card-body { flex: 1; min-width: 0; }
.risk-card-desc {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.risk-card-meta { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.status-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 20px;
  margin-top: 6px;
}
.status-NEW { background: rgba(154,160,172,.18); color: var(--text-dim); }
.status-CONFIRMED { background: rgba(239,159,39,.18); color: var(--amber); }
.status-IN_PROGRESS { background: rgba(55,138,221,.18); color: var(--blue); }
.status-RESOLVED { background: rgba(61,220,151,.18); color: var(--green); }
.status-REJECTED { background: rgba(230,57,70,.18); color: var(--red); }

.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin: 16px 0 6px;
}

.file-input, .select-input, .textarea-input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--bg-elev-2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
}
.textarea-input { resize: vertical; }

.photo-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 10px;
}

.detail-photo {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.detail-description { font-size: 15px; line-height: 1.5; margin: 10px 0; }

.comment-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.comment {
  background: var(--bg-elev);
  border: 1px solid var(--bg-elev-2);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.comment-author { font-size: 12px; color: var(--yellow); font-weight: 600; margin-bottom: 2px; }
.comment-text { font-size: 14px; line-height: 1.4; }
.comment img { width: 100%; border-radius: 8px; margin-top: 8px; }
