* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #0f1115;
  color: #e8e9ec;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.screen {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 16px 32px;
}

.header {
  padding: 8px 4px 20px;
}

.header .eyebrow {
  font-size: 13px;
  color: #9a9fab;
  margin: 0 0 4px;
}

.header h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 600;
}

.card {
  background: #1a1d24;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.card h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a9fab;
  margin: 0 0 14px;
  font-weight: 600;
}

.turnover-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-ring {
  --pct: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(#4fd18b calc(var(--pct) * 1%), #2a2e37 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring .inner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #1a1d24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}

.turnover-details .amount {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.turnover-details .plan {
  font-size: 13px;
  color: #9a9fab;
  margin: 0;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #262a33;
}

.task-row:last-child {
  border-bottom: none;
}

.task-name {
  font-size: 14px;
  flex: 1;
  padding-right: 12px;
}

.task-target {
  font-size: 12px;
  color: #9a9fab;
  display: block;
  margin-top: 2px;
}

.weight-badge {
  background: #2a2e37;
  color: #4fd18b;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.attention-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #262a33;
}

.attention-row:last-child {
  border-bottom: none;
}

.attention-client {
  font-size: 14px;
  max-width: 60%;
}

.attention-debt {
  font-size: 14px;
  font-weight: 700;
  color: #f0765c;
  text-align: right;
}

.attention-date {
  display: block;
  font-size: 11px;
  color: #9a9fab;
  font-weight: 400;
}

.empty-state {
  font-size: 13px;
  color: #9a9fab;
  font-style: italic;
}

.badge-stub {
  display: inline-block;
  font-size: 11px;
  color: #f0b93c;
  border: 1px solid #f0b93c;
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
}

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

.form-label {
  font-size: 12px;
  color: #9a9fab;
  margin-top: 8px;
}

.form-input {
  background: #0f1115;
  border: 1px solid #2a2e37;
  border-radius: 8px;
  color: #e8e9ec;
  padding: 10px 12px;
  font-size: 14px;
}

.form-button {
  margin-top: 14px;
  background: #4fd18b;
  color: #0f1115;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px 16px;
}

.nav a {
  color: #9a9fab;
  text-decoration: none;
  font-size: 13px;
  background: #1a1d24;
  border-radius: 999px;
  padding: 6px 12px;
}

.nav a.active {
  color: #4fd18b;
}
