@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

* { box-sizing: border-box; }
body { margin: 0; background: #F7F5F2; font-family: 'Manrope', system-ui, sans-serif; color: #201A2B; }
a { color: #6D28D9; }
#app { width: 100%; padding: 40px 48px; display: flex; flex-direction: column; gap: 20px; }

.topbar { display: flex; align-items: center; justify-content: space-between; }
.topbar .brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #7C3AED, #C026D3); }
.brand strong { font-weight: 800; font-size: 15px; }
.muted { color: #8B849A; }

.header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.header h1 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.25; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge.ok { background: #E6F6EE; color: #0E7A47; }
.budget-card { min-width: 300px; background: linear-gradient(135deg, #EFE9FB, #F6E9F5); border: 1px solid #E2D6F5; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.budget-card .amount { font-size: 24px; font-weight: 800; }

.section-label { display: flex; align-items: center; gap: 10px; }
.section-label .tag { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #6D28D9; }

.field-label { font-size: 10.5px; font-weight: 700; color: #8B849A; margin-bottom: 3px; display: block; }
.field-input { border: 1px solid #E2DDF0; border-radius: 8px; padding: 7px 9px; font-size: 12px; color: #201A2B; background: #fff; width: 100%; font-family: inherit; }
.field-input:focus { outline: 2px solid #C4B5FD; outline-offset: 1px; }
.ghost-btn { background: #fff; border: 1px solid #DDD3F2; color: #6D28D9; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.primary-btn { background: linear-gradient(135deg, #7C3AED, #C026D3); color: #fff; border: none; font-size: 12.5px; font-weight: 700; padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.primary-btn:disabled, .ghost-btn:disabled { opacity: .5; cursor: not-allowed; }
.danger-btn { color: #C4485A; border-color: #F3D3D9; }

.r3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.r2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.main2col { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) {
  .main2col, .r3, .r2 { grid-template-columns: 1fr; }
  #app { padding: 24px 20px; }
}

.card { border: 1px solid #EEE9F8; border-radius: 14px; padding: 16px; background: #FCFBFE; display: flex; flex-direction: column; gap: 10px; }
.card.pink { border-color: #F1D9F0; background: linear-gradient(180deg, #FBF4FB, #FCFBFE); }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }

.confirm-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.confirm-btn { width: 22px; height: 22px; border-radius: 999px; border: 1px solid #DDD3F2; background: #fff; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.confirm-btn.on { border-color: #0E7A47; background: #E6F6EE; }
.confirm-btn svg { pointer-events: none; }

.status-chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status-chip.pending { color: #6B6478; background: #F1EFEE; }
.status-chip.progress { color: #B45309; background: #FDF1DC; }
.status-chip.done { color: #0E7A47; background: #E6F6EE; }

.slot-card { border: 1px solid #EFEAFA; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.remove-btn { background: none; border: none; color: #C4485A; font-size: 15px; padding: 0 4px; cursor: pointer; }

.mail-preview { border-radius: 12px; overflow: hidden; border: 1px solid #E9E3F7; }
.mail-preview .head { background: linear-gradient(90deg, #3B82F6, #7C3AED, #DB2777, #F59E0B); padding: 14px 16px; }
.mail-preview .head .eyebrow { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: rgba(255,255,255,.85); }
.mail-preview .head .title { font-size: 15px; font-weight: 800; color: #fff; margin-top: 2px; }
.mail-preview .body { padding: 12px 16px; background: #fff; display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: #4C4459; }
.mail-option { display: flex; align-items: center; justify-content: space-between; background: #F6F3FC; border-radius: 8px; padding: 8px 10px; }
.mail-option .cta { font-size: 10px; font-weight: 700; color: #6D28D9; background: #EFE9FB; padding: 3px 8px; border-radius: 999px; }

.checklist-item { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid #F1EFEE; }
.checklist-item .dot { width: 16px; height: 16px; border-radius: 999px; border: 1px solid #C7C1D6; flex-shrink: 0; margin-top: 2px; }
.checklist-item .q { font-size: 12.5px; font-weight: 700; }
.checklist-item .hint { font-size: 11px; color: #8B849A; margin-top: 2px; }

.stage-row { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 10px 2px; }
.stage-card { min-width: 220px; max-width: 220px; background: #fff; border: 1px solid #ECE7F6; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.stage-card .eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #9C96A8; }
.stage-card .title { font-size: 13px; font-weight: 800; }

.next-step { border: 1px dashed #DDD3F2; border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.next-step .hint { font-size: 12px; color: #6B6478; }

.error-banner { background: #FDECEC; color: #B42318; border: 1px solid #F3C3C3; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; font-weight: 600; }
