/* FinCalc Engine — chat */
.fce{--fce-p:#0f766e;--fce-bg:#f6f7f9;max-width:480px;margin:0 auto;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;background:var(--fce-bg);font-family:inherit;display:flex;flex-direction:column;height:660px;max-height:85vh;box-sizing:border-box}
.fce *{box-sizing:border-box}
.fce-head{background:var(--fce-p);color:#fff;padding:12px 16px;display:flex;gap:10px;align-items:center}
.fce-head>i{font-size:20px}
.fce-titles{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.fce-title{font-weight:600;font-size:15px}
.fce-sub{font-size:12px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fce-reset{margin-left:auto;background:none;border:0;color:#fff;font-size:18px;cursor:pointer;padding:4px}
.fce-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth}
.fce-msg{max-width:88%;padding:10px 14px;border-radius:14px;line-height:1.5;font-size:14px;overflow-wrap:anywhere}
.fce-msg p{margin:0 0 6px}.fce-msg p:last-child{margin:0}
.fce-msg ul{margin:4px 0 6px 18px;padding:0}
.fce-msg hr{border:0;border-top:1px dashed #a7f3d0;margin:10px 0}
.fce-bot{background:#fff;color:#111827;align-self:flex-start;border-bottom-left-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.fce-user{background:var(--fce-p);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.fce-res{background:#ecfdf5;background:color-mix(in srgb,var(--fce-p) 8%,#fff);border:1px solid #a7f3d0;border-color:color-mix(in srgb,var(--fce-p) 30%,#fff);color:#111827;align-self:stretch;max-width:100%}
.fce-hint{display:block;font-size:12px;color:#6b7280;margin-top:4px}
.fce-typing{color:#9ca3af;letter-spacing:2px}
.fce-chips{display:flex;flex-wrap:wrap;gap:6px;align-self:flex-start}
.fce-chips button{border:1px solid var(--fce-p);color:var(--fce-p);background:#fff;border-radius:999px;padding:7px 12px;font-size:13px;line-height:1.2;cursor:pointer;display:inline-flex;gap:6px;align-items:center}
.fce-chips button:hover:not(:disabled){background:var(--fce-p);color:#fff}
.fce-chips button:disabled{opacity:.45;cursor:not-allowed}
.fce-sum{font-size:13px;width:100%}
.fce-sum-row{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px dashed #e5e7eb}
.fce-sum-row:last-child{border:0}
.fce-sum-row span:first-child{color:#6b7280}
.fce-sum-row span:last-child{text-align:right;font-weight:600;white-space:nowrap}
.fce-sum a{color:var(--fce-p);font-weight:400;margin-left:6px;text-decoration:underline}
.fce-err{color:#b91c1c;font-size:12px;align-self:flex-start}
.fce-bar{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e5e7eb;margin:0}
.fce-bar input{flex:1;min-width:0;border:1px solid #d1d5db;border-radius:10px;padding:10px 12px;font-size:16px;margin:0}
.fce-bar button{background:var(--fce-p);color:#fff;border:0;border-radius:10px;padding:0 14px;font-size:16px;cursor:pointer}
.fce-bar.is-off{opacity:.45;pointer-events:none}
.fce-msg a{color:inherit;text-decoration:underline}
.fce-cta,.fce-btn{display:inline-flex;gap:6px;align-items:center;background:#25d366;color:#fff!important;text-decoration:none!important;padding:8px 14px;border-radius:999px;font-weight:600}
.fce-btn{background:var(--fce-p,#0f766e)}
/* [fincalc_riwayat] */
.fce-history{max-width:640px;margin:0 auto}
.fce-history ul{list-style:none;margin:0;padding:0}
.fce-history li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e5e7eb}
.fce-history small{color:#6b7280}

.fce-logo{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;padding:3px 6px;height:34px;max-width:96px;flex-shrink:0}
.fce-logo img{max-height:28px;max-width:84px;display:block}
.fce-chips button:first-child:has(.ri-arrow-right-up-line){background:var(--fce-p);color:#fff}

/* access gate */
.fce-lock{font-size:11px;background:#fef3c7;color:#92400e;border-radius:999px;padding:1px 7px;margin-left:2px}
.fce-gatecard{background:#fff;border:1px solid #fcd34d;align-self:stretch;max-width:100%}
.fce-blur{display:flex;flex-direction:column;gap:7px;margin-bottom:10px;filter:blur(3px);opacity:.55}
.fce-blur span{height:10px;border-radius:5px;background:linear-gradient(90deg,var(--fce-p),#d1d5db)}
.fce-blur span:nth-child(2){width:80%}.fce-blur span:nth-child(3){width:55%}

/* welcome card before a [fincalc] widget (same look as the partner page) */
.fce-wrap{--fce-p:#0f766e;max-width:480px;margin:0 auto;font-family:inherit}
.fce-wrap [hidden]{display:none!important}
.fce-wrap *{box-sizing:border-box}
.fce-ob{background:#fff;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 12px 40px rgba(15,23,42,.08);padding:32px 26px;text-align:center;color:#111827;animation:fce-ob-in .35s ease-out}
@keyframes fce-ob-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.fce-ob-logos{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:22px}
.fce-ob-partners{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px 24px}
.fce-ob-partners img{max-height:48px;max-width:170px;width:auto;height:auto;object-fit:contain;display:block;margin:0}
.fce-ob-partners img+img{padding-left:24px;border-left:1px solid #e5e7eb}
.fce-ob-with{display:flex;align-items:center;gap:8px;color:#9ca3af;font-size:12px}
.fce-ob-with img{max-height:24px;max-width:110px;width:auto;height:auto;display:block;margin:0}
.fce-ob-with b{color:#374151}
.fce-ob-brand{font-weight:700;color:var(--fce-p);font-size:19px}
.fce-ob .fce-ob-title{font-size:clamp(21px,4vw,27px);line-height:1.25;margin:0 0 12px;padding:0;letter-spacing:-.01em;color:#111827;font-weight:700;text-transform:none}
.fce-ob-desc{color:#4b5563;font-size:15px;line-height:1.6;margin:0 auto 20px;max-width:440px}
.fce-ob-desc p{margin:0 0 8px}
.fce-ob-calcs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 0 24px}
.fce-ob-cat{flex-basis:100%;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#9ca3af;margin-top:6px}
.fce-ob-cat:first-child{margin-top:0}
.fce-ob .fce-ob-calcs button{display:inline-flex;align-items:center;gap:6px;border:1px solid #e5e7eb;background:#f9fafb;color:#374151;border-radius:999px;padding:7px 13px;margin:0;font-size:13px;line-height:1.2;font-weight:400;cursor:pointer;font-family:inherit;text-transform:none;box-shadow:none;width:auto}
.fce-ob .fce-ob-calcs button:hover{border-color:var(--fce-p);color:var(--fce-p);background:#fff}
.fce-ob .fce-ob-start{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:360px;margin:0;background:var(--fce-p);color:#fff;border:0;border-radius:14px;padding:15px 20px;font-size:16px;line-height:1.2;font-weight:600;cursor:pointer;font-family:inherit;text-transform:none;box-shadow:0 8px 24px color-mix(in srgb,var(--fce-p) 35%,transparent);transition:transform .15s}
.fce-ob .fce-ob-start:hover{transform:translateY(-1px);background:var(--fce-p);color:#fff}
.fce-ob-meta{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 16px;margin-top:14px;color:#6b7280;font-size:13px}
.fce-ob-disc{margin-top:22px;color:#9ca3af;font-size:11.5px;line-height:1.5}
.fce-wrap .fce-ob-back{background:none;border:0;color:#6b7280;font-size:13px;cursor:pointer;padding:4px 0;margin:0 0 6px;font-family:inherit;box-shadow:none;text-transform:none}
.fce-wrap .fce-ob-back:hover{color:var(--fce-p);background:none}
@media (max-width:520px){.fce-ob{padding:24px 18px;border-radius:18px}.fce-ob-partners img{max-height:38px;max-width:140px}.fce-ob-partners img+img{padding-left:16px}}
