* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f5f5; color: #333; }
.app { max-width: 600px; margin: 0 auto; padding: 16px; }

.header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.header h1 { font-size: 22px; flex: 1; }
.back { color: #07c160; text-decoration: none; font-size: 14px; }
.subtitle { font-size: 12px; color: #999; }

.total-card { background: linear-gradient(135deg, #07c160, #0ab86e); color: white; border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.total-row.sub { font-size: 14px; opacity: 0.9; }
.total-money { font-size: 36px; font-weight: bold; }

.btn-group { display: flex; gap: 12px; margin-bottom: 20px; }
.btn { flex: 1; text-align: center; padding: 14px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 500; }
.btn-primary { background: #07c160; color: white; }
.btn-secondary { background: white; color: #07c160; border: 2px solid #07c160; }
.btn-danger { background: #ff4d4f; color: white; }
.btn-full { width: 100%; display: block; margin-top: 12px; }
.btn-small { padding: 6px 12px; font-size: 12px; background: #07c160; color: white; border: none; border-radius: 6px; }

.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.list-header h3 { font-size: 16px; }

.record-list { display: flex; flex-direction: column; gap: 12px; }
.record-item { background: white; border-radius: 12px; padding: 14px; }
.record-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.record-date { color: #666; font-size: 14px; }
.record-amount { font-weight: bold; font-size: 16px; color: #e54d42; }
.record-mid { display: flex; justify-content: space-between; font-size: 13px; color: #888; margin-bottom: 6px; }
.record-bottom { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.share-yes { color: #07c160; }
.share-no { color: #faad14; }
.record-remark { color: #999; flex: 1; }
.del-btn { background: none; border: none; color: #ff4d4f; font-size: 12px; cursor: pointer; margin-left: auto; }

.form-card { background: white; border-radius: 16px; padding: 20px; }
.field { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.field label { font-size: 15px; color: #333; }
.field input, .field select { border: none; text-align: right; font-size: 15px; outline: none; background: transparent; }
.checkbox-field { justify-content: space-between; }
.empty { text-align: center; color: #bbb; padding: 40px 0; }

.settle-card { background: white; border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.settle-card h3 { margin-bottom: 12px; font-size: 16px; }
.settle-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.brother-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.brother-row strong { font-size: 15px; }
.green { color: #07c160; }
.red { color: #ff4d4f; }
.transfers { display: flex; flex-direction: column; gap: 8px; }
.transfer-item { background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 8px; padding: 10px; text-align: center; }
.handler-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
