.modal.wide{width:min(1040px,100%)}
.profile-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px;border-radius:17px;background:linear-gradient(125deg,#103e53,#17627a);color:#fff;margin-bottom:17px}
.profile-person{display:flex;align-items:center;gap:14px}.profile-avatar{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;background:#fff;color:#123f54;font-size:21px;font-weight:900}.profile-person h3{font-size:22px;margin:0 0 4px}.profile-person p{margin:0;color:#d3e4e9;font-size:13px}
.profile-actions{display:flex;gap:8px;flex-wrap:wrap}.profile-actions .btn{background:#ffffff16;border-color:#ffffff33;color:#fff}
.profile-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:17px}.profile-metric{border:1px solid var(--line);border-radius:15px;padding:16px;background:#fff}.profile-metric header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.profile-metric header span{font-size:12px;color:var(--muted);font-weight:800}.metric-value{font-size:23px;font-weight:900}.metric-note{font-size:12px;color:var(--muted);margin-top:4px}.metric-progress{height:7px;background:#e9f0f1;border-radius:10px;overflow:hidden;margin-top:12px}.metric-progress i{display:block;height:100%;border-radius:10px;background:var(--green)}
.profile-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-panel{border:1px solid var(--line);border-radius:15px;padding:17px;background:#fff}.profile-panel h4{margin:0 0 13px}.check-list{display:grid;gap:8px}.check-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;background:#f5f8f9;border-radius:10px;font-size:13px}.check-item .check-name{display:flex;align-items:center;gap:9px}.check-symbol{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;font-weight:900;background:#fde8e9;color:#a72f36}.check-symbol.ok{background:#e8f6e3;color:#477c33}.mini-history{display:grid;gap:8px}.history-row{display:grid;grid-template-columns:85px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.history-row:last-child{border-bottom:0}.completion-inline{display:flex;align-items:center;gap:8px}.completion-ring{--p:0;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) calc(var(--p)*1%),#e5edef 0);position:relative}.completion-ring:before{content:"";position:absolute;inset:5px;background:#fff;border-radius:50%}.completion-ring b{position:relative;font-size:9px}.payment-mini{min-width:105px}.payment-mini strong,.payment-mini small{display:block}.payment-mini small{color:var(--muted);margin-top:3px}
@media(max-width:760px){.profile-hero{display:block}.profile-actions{margin-top:16px}.profile-metrics,.profile-columns{grid-template-columns:1fr}.history-row{grid-template-columns:75px 1fr auto}}
.budget-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 27px;margin-bottom:16px;border-radius:20px;background:linear-gradient(125deg,#103e53,#17627a);color:#fff}.budget-hero p{font-size:11px;letter-spacing:.15em;color:#84d562;font-weight:900;margin:0 0 5px}.budget-hero h2{font-size:25px;margin:0 0 6px}.budget-hero span{font-size:13px;color:#d5e6eb}.budget-hero .btn{background:#fff;color:var(--navy);border-color:#fff;white-space:nowrap}.budget-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:16px}.budget-summary article{padding:17px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:var(--shadow)}.budget-summary span,.budget-summary small,.budget-summary strong{display:block}.budget-summary span{font-size:12px;color:var(--muted);font-weight:800}.budget-summary strong{font-size:24px;margin:7px 0 3px}.budget-summary small{font-size:11px;color:var(--muted)}.budget-summary .profit-card{border-top:4px solid var(--green)}.budget-layout{display:grid;grid-template-columns:1.45fr .75fr;gap:16px}.cost-editor{display:grid;gap:9px}.cost-line{display:grid;grid-template-columns:minmax(160px,1fr) 125px 145px 110px;gap:9px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:11px}.cost-line strong,.cost-line small{display:block}.cost-line small{font-size:10px;color:var(--muted);margin-top:2px}.cost-line input,.cost-line select{width:100%;border:1px solid #cad9dd;border-radius:9px;padding:9px;font:inherit;font-size:12px}.cost-line b{text-align:right;font-size:13px}.budget-detail{height:max-content}.result-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.result-line strong{font-size:15px}.result-line.highlight{margin-top:8px;padding:16px 13px;border:0;border-radius:11px;background:#eef7ea}.result-line.highlight strong{font-size:20px;color:#4a8c32}.budget-warning{margin-top:15px;padding:12px;border-radius:10px;font-size:12px;font-weight:800}.budget-warning.safe{background:#e8f6e3;color:#477c33}.budget-warning.loss{background:#fde8e9;color:#a72f36}@media(max-width:1100px){.budget-summary{grid-template-columns:repeat(2,1fr)}.budget-layout{grid-template-columns:1fr}}@media(max-width:760px){.budget-hero{display:block}.budget-hero .btn{margin-top:15px}.budget-summary{grid-template-columns:1fr}.cost-line{grid-template-columns:1fr 1fr}.cost-line>div{grid-column:1/-1}.cost-line b{text-align:left}}
