/* GharzPay app — scoped to .hggp-app / .hggp-account only. Never touches theme header/footer. */
.hggp-app,.hggp-account,.hggp-app *,.hggp-account *{box-sizing:border-box}
.hggp-app [hidden],.hggp-account [hidden],.hggp-form fieldset[hidden],.hggp-deed fieldset[hidden]{display:none!important}
.hggp-app,.hggp-account{
	--hggp-ink:#1c1917;--hggp-muted:#57534e;--hggp-saffron:#b45309;--hggp-deep:#7c2d12;--hggp-teal:#0f766e;
	--hggp-paper:#fffaf3;--hggp-card:#fff;--hggp-line:#e7d5c0;--hggp-ok:#14532d;--hggp-err:#9f1239;
	width:100%;max-width:1120px;margin:0 auto;padding:18px 14px 48px;color:var(--hggp-ink);direction:rtl;line-height:1.9;font-size:16px;background:transparent;isolation:isolate
}
.hggp-kicker{display:inline-flex;align-items:center;margin:0 0 10px;padding:4px 12px;border:1px solid #f3c77a;border-radius:999px;background:#fff7e6;color:var(--hggp-deep);font-size:13px;font-weight:800}
.hggp-sales,.hggp-seo,.hggp-roles,.hggp-head,.hggp-guest,.hggp-checkout,.hggp-form,.hggp-deed,.hggp-account__intro{margin:0 0 18px;padding:20px 18px;border:1px solid var(--hggp-line);border-radius:18px;background:var(--hggp-paper)}
.hggp-sales{background:linear-gradient(160deg,#fff4e0 0%,#fffaf3 48%,#f3faf8 100%);box-shadow:0 10px 30px rgba(124,45,18,.08)}
.hggp-sales h2,.hggp-roles h2,.hggp-head h2,.hggp-seo h2,.hggp-deed h2{margin:0 0 10px;font-size:clamp(1.25rem,2.4vw,1.85rem);line-height:1.55;color:var(--hggp-deep)}
.hggp-sales__lead,.hggp-roles>p,.hggp-head p{margin:0 0 14px;color:var(--hggp-muted)}
.hggp-sales__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hggp-sales__card{padding:16px 14px;border-radius:14px;background:#fff;border:1px solid var(--hggp-line);min-width:0}
.hggp-sales__card--1{border-top:4px solid var(--hggp-saffron)}
.hggp-sales__card--2{border-top:4px solid var(--hggp-teal)}
.hggp-sales__card--3{border-top:4px solid #b45309}
.hggp-sales__card--4{border-top:4px solid #1e3a5f}
.hggp-sales__card h3{margin:0 0 8px;font-size:1.02rem;color:var(--hggp-ink)}
.hggp-sales__card p,.hggp-seo p{margin:0;color:#44403c;font-size:.95rem}
.hggp-roles__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hggp-role{display:flex;flex-direction:column;gap:6px;padding:18px 16px;border-radius:16px;text-decoration:none!important;color:inherit;border:2px solid var(--hggp-line);background:#fff;min-height:120px}
.hggp-role strong{font-size:1.15rem}
.hggp-role span{color:var(--hggp-muted);font-size:.92rem}
.hggp-role--lender{border-color:#f3c77a;background:linear-gradient(180deg,#fff8ea,#fff)}
.hggp-role--borrower{border-color:#99d5cf;background:linear-gradient(180deg,#eefaf7,#fff)}
.hggp-role:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(28,25,23,.08)}
.hggp-fold{margin:0 0 16px;border:1px solid var(--hggp-line);border-radius:14px;background:#fff;padding:4px 12px}
.hggp-fold>summary{cursor:pointer;font-weight:800;padding:10px 4px;color:var(--hggp-deep)}
.hggp-note,.hggp-empty{color:var(--hggp-muted);font-size:.95rem}
.hggp-flash{padding:12px 14px;border-radius:12px;margin:0 0 16px}
.hggp-flash--ok{background:#ecfdf3;border:1px solid #bbf7d0;color:var(--hggp-ok)}
.hggp-flash--err{background:#fff1f2;border:1px solid #fecdd3;color:var(--hggp-err)}
.hggp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 18px;border:1px solid var(--hggp-saffron);border-radius:12px;background:var(--hggp-saffron);color:#fff!important;text-decoration:none!important;font-weight:800;cursor:pointer;width:100%;max-width:100%}
.hggp-btn--ghost{background:#fff;color:var(--hggp-deep)!important;border-color:var(--hggp-line)}
.hggp-btn:focus-visible{outline:3px solid var(--hggp-teal);outline-offset:3px}
.hggp-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.hggp-filters a{padding:8px 12px;border:1px solid var(--hggp-line);border-radius:999px;text-decoration:none;color:var(--hggp-deep);background:#fff}
.hggp-filters a.is-active{background:var(--hggp-deep);color:#fff;border-color:var(--hggp-deep)}
.hggp-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.hggp-card a{display:block;padding:16px;border:1px solid var(--hggp-line);border-radius:16px;background:#fff;text-decoration:none;color:inherit}
.hggp-card strong{display:block;margin:4px 0}
.hggp-card__code,.hggp-card__meta{display:block;color:var(--hggp-muted);font-size:.9rem}
.hggp-deed{background:#fffdf8;border:1px solid #d6b98a;box-shadow:0 12px 28px rgba(124,45,18,.08)}
.hggp-deed__head{text-align:center;border-bottom:1px solid #e8d4b0;padding-bottom:12px;margin-bottom:16px}
.hggp-deed__bism{margin:0 0 8px;font-weight:800;color:var(--hggp-deep);font-size:1.15rem}
.hggp-deed__meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:var(--hggp-muted);font-size:.9rem}
.hggp-deed__parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
.hggp-deed__parties>div{padding:12px;border:1px dashed #d6b98a;border-radius:12px;background:#fff}
.hggp-deed__parties span{display:block;font-size:.8rem;color:var(--hggp-saffron);font-weight:800}
.hggp-deed__parties strong,.hggp-deed__parties small{display:block}
.hggp-deed__you,.hggp-status,.hggp-loan,.hggp-start{margin:0 0 12px}
.hggp-status{display:inline-block;padding:6px 12px;border-radius:999px;background:#fff7e6;color:var(--hggp-deep);font-weight:800}
.hggp-field,.hggp-deed label,.hggp-form label{display:grid;gap:6px;margin:0 0 12px;font-weight:700}
.hggp-deed input,.hggp-deed select,.hggp-deed textarea,.hggp-form input,.hggp-form select,.hggp-form textarea{min-height:44px;padding:8px 10px;border:1px solid #d6b98a;border-radius:10px;font:inherit;font-weight:400;background:#fff}
.hggp-qty{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hggp-part{display:grid;gap:8px;margin:0 0 12px;padding:12px;border:1px solid var(--hggp-line);border-radius:12px;background:#fff}
.hggp-part legend{font-weight:800;padding:0 6px}
.hggp-deed__sign{padding:12px;border-top:1px solid #e8d4b0;color:var(--hggp-muted)}
.hggp-actions,.hggp-tools{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.hggp-tools .hggp-btn,.hggp-actions .hggp-btn{width:auto;min-width:160px}
.hggp-table-wrap{overflow:auto;margin:12px 0}
.hggp-table{width:100%;border-collapse:collapse;min-width:480px}
.hggp-table th,.hggp-table td{border:1px solid var(--hggp-line);padding:8px 10px;text-align:right}
.hggp-guide-launch{margin:24px 0 0}
.hggp-guide{max-width:min(520px,92vw);padding:22px;border:0;border-radius:18px;background:#fffaf3;color:var(--hggp-ink);box-shadow:0 20px 50px rgba(28,25,23,.25)}
.hggp-guide::backdrop{background:rgba(28,25,23,.45)}
.hggp-guide h3{margin:0 0 12px;color:var(--hggp-deep)}
.hggp-guide ol{margin:0 0 16px;padding:0 18px 0 0}
.hggp-cal{position:absolute;z-index:40;width:min(280px,92vw);padding:10px;border:1px solid var(--hggp-line);border-radius:12px;background:#fff;box-shadow:0 12px 28px rgba(28,25,23,.16)}
.hggp-cal__nav{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.hggp-cal__grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.hggp-cal button{min-height:36px;border:0;border-radius:8px;background:#fff7e6;cursor:pointer}
.hggp-cal button.is-today{outline:2px solid var(--hggp-teal)}
.hggp-field-wrap{position:relative}
@media(max-width:720px){
	.hggp-sales__grid,.hggp-roles__grid,.hggp-deed__parties,.hggp-qty{grid-template-columns:minmax(0,1fr)}
	.hggp-tools .hggp-btn,.hggp-actions .hggp-btn,.hggp-btn{width:100%}
}
@media(min-width:640px){.hggp-btn{width:auto;min-width:180px}}
@media(prefers-reduced-motion:reduce){.hggp-app *,.hggp-role:hover{transform:none;scroll-behavior:auto!important}}

/* Gharzban agreement v2: preserve the enclosing theme and support narrow screens. */
.hggp-app [hidden]{display:none!important}
.hggp-deed-prose{font-size:1.02rem;line-height:3.2;margin:18px 0}
.hggp-deed .hggp-inline{display:inline-block;max-width:100%;vertical-align:baseline;margin:0 4px}
.hggp-deed .hggp-inline input,.hggp-deed .hggp-inline select{display:inline-block;width:180px;max-width:100%;min-height:40px;border:0;border-bottom:1px dashed #859b99;border-radius:0;background:#f8faf9;padding:6px 9px;font:inherit}
.hggp-deed .hggp-inline input:focus,.hggp-deed .hggp-inline select:focus{outline:2px solid #547e74;outline-offset:2px}
.hggp-signatures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:32px 0 18px;break-inside:avoid}
.hggp-signatures section{border:1px solid #bacac3;border-radius:6px;min-height:165px;padding:20px;text-align:center}
.hggp-signatures h3{font-size:1rem;margin:0 0 16px}.hggp-signatures p{margin:7px 0;line-height:1.8}.hggp-signatures small,.hggp-signatures time{display:block;font-size:.85rem}
.hggp-proof bdi{overflow-wrap:anywhere;font:12px monospace}.hggp-proof{color:#51605d;font-size:.85rem}
.hggp-claim{width:100%;padding:16px;border:1px solid #d9e3df;border-radius:6px}.hggp-claim form{display:inline-block;margin:5px}
.hggp-pricing{margin:28px 0}.hggp-pricing h2{font-size:1.25rem}.hggp-pricing p{line-height:1.9}.hggp-pricing .hggp-note{font-size:.86rem;color:#54655e;font-weight:400}
.hggp-pricing .hggp-table-wrap{overflow-x:auto}.hggp-pricing table{width:100%;border-collapse:collapse;text-align:right;font-size:.95rem}.hggp-pricing th,.hggp-pricing td{padding:12px;border-bottom:1px solid #dce6df}.hggp-pricing th{background:#f3f7f4;font-weight:600}
@media(max-width:600px){.hggp-signatures{grid-template-columns:1fr;gap:12px}.hggp-deed-prose{line-height:2.8}.hggp-deed .hggp-inline input,.hggp-deed .hggp-inline select{width:160px}.hggp-deed .hggp-inline{margin:4px 2px}.hggp-pricing th,.hggp-pricing td{padding:10px 6px;font-size:.88rem}}

.hggp-signatures .hggp-signature-time,.hggp-signatures .hggp-signature-id{font-size:.85rem}
.hggp-app .screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}

/* Agreement v3. All rules remain inside the loan component. */
.hggp-app .hggp-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 4px 26px;border-bottom:1px solid #e7d5c0;margin-bottom:24px}
.hggp-app .hggp-hero__brand{font-size:clamp(2.8rem,7vw,4.8rem);font-weight:900;line-height:1.2;letter-spacing:-2px;color:#7c2d12;margin:8px 0 14px}
.hggp-app .hggp-hero__slogan{font-size:clamp(1rem,2vw,1.3rem);max-width:550px;margin:0;color:#365f58}
.hggp-app .hggp-hero__seal{display:grid;place-content:center;flex:0 0 148px;aspect-ratio:1;transform:rotate(-8deg);border:2px solid #c59b60;outline:1px solid #dec49e;outline-offset:7px;border-radius:50%;background:#fffaf1;color:#806039;text-align:center;font-size:1.15rem;font-weight:800;box-shadow:8px 10px 0 #eddac346}
.hggp-app .hggp-sales h3{font-size:1.12rem;line-height:1.7}
.hggp-app .hggp-intro{border:1px solid #b9d4cc;background:linear-gradient(130deg,#edf7f3,#fcfdfa);border-radius:18px;padding:24px;margin-bottom:20px}
.hggp-app .hggp-intro.has-video{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;align-items:start}
.hggp-app .hggp-intro h2{font-size:1.4rem;color:#16574f;margin:0 0 12px}.hggp-app .hggp-intro p{margin:0 0 14px}.hggp-app .hggp-intro__text{min-width:0;overflow-wrap:anywhere}
.hggp-app .hggp-video{position:sticky;top:24px;min-width:0;aspect-ratio:100/57;border-radius:14px;overflow:hidden;background:#143e36;box-shadow:0 12px 28px #254d4320}.hggp-app .hggp-video iframe{display:block;width:100%;height:100%;border:0}
.hggp-app .hggp-section-title,.hggp-app .hggp-roles__head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.hggp-app .hggp-section-title h3,.hggp-app .hggp-section-title label{margin:0}.hggp-app .hggp-section-title label{display:flex;align-items:center;gap:10px}
.hggp-app .hggp-toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 22px;text-align:right}
.hggp-app .hggp-btn--back{background:#fff;border-color:#a8b7ba;color:#244654!important}.hggp-app .hggp-btn--guide{background:#0f766e;border-color:#0f766e;color:#fff!important}
.hggp-app .hggp-toolbar .hggp-btn{min-width:0;width:auto;font-size:.9rem}.hggp-app .hggp-deed__head{background:linear-gradient(#fffdf8,#fff5e6);margin:-20px -18px 20px;padding:20px 18px;border-radius:18px 18px 0 0}
.hggp-app .hggp-deed__meta span:last-child{color:#1c6159;background:#eaf4ef;padding:4px 10px;border-radius:7px}
.hggp-app .hggp-deed__meta{align-items:center}.hggp-app .hggp-inline>span{display:block;font-size:.78rem;line-height:1.5;color:#46645b}
.hggp-app .hggp-asset-section,.hggp-app .hggp-installments{margin:22px 0;padding:18px;border-radius:14px;background:#f5f9f7;border:1px solid #c9ddd4}
.hggp-app .hggp-asset-section h3{margin:0 0 16px;color:#21594d}.hggp-app .hggp-installments{background:#fff8ed;border-color:#ebd6b5}
.hggp-app .hggp-asset-fields,.hggp-app .hggp-part__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.hggp-app .hggp-field--wide{grid-column:1/-1}
.hggp-app .hggp-field{min-width:0}.hggp-app .hggp-deed input,.hggp-app .hggp-deed select,.hggp-app .hggp-deed textarea{width:100%;max-width:100%;min-width:0;font-size:16px;line-height:1.7}.hggp-app .hggp-section-title select{width:65px}
.hggp-app .hggp-unit{display:inline-block;background:#175c51;color:#fff;border-radius:6px;padding:1px 10px;font-size:.85rem;margin-inline-start:5px;white-space:nowrap}
.hggp-app .hggp-field small,.hggp-app .hggp-weight-note{font-size:.82rem;font-weight:400;color:#547168;line-height:1.8}.hggp-app .hggp-sum{font-size:.88rem;color:#9f4832}.hggp-app .hggp-sum.is-valid{color:#166534}
.hggp-app .hggp-signatures section{position:relative;border-radius:14px;border-width:1px;border-top-width:5px;overflow-wrap:anywhere}.hggp-app .hggp-signatures .hggp-signature--lender{background:#fff4df;border-color:#c89135}.hggp-app .hggp-signatures .hggp-signature--borrower{background:#eaf7f2;border-color:#388d7b}
.hggp-app .hggp-signature-icon{font-size:26px;display:block}.hggp-app .hggp-signature-state{display:inline-block;border:1px dashed currentColor;border-radius:20px;padding:3px 10px;margin-bottom:12px;font-size:.8rem}
.hggp-app .hggp-billing-preview,.hggp-app .hggp-billing-details{background:#eff4f9;border:1px solid #c8d6e6;border-right:5px solid #496e94;border-radius:12px;padding:20px;margin:24px 0}.hggp-app .hggp-billing-preview h3{margin:0;color:#264868}.hggp-app [data-fee-estimate]{font-weight:700;font-size:1.1rem;color:#244e74;min-height:2em}.hggp-app .hggp-billing-preview small{font-weight:400;font-size:.84rem}
.hggp-app .hggp-guide{width:min(680px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);padding:24px;overflow:auto;direction:rtl}.hggp-app .hggp-guide header{display:flex;justify-content:space-between;gap:12px;align-items:start}.hggp-app .hggp-guide h2{font-size:1.4rem;margin:0 0 16px}.hggp-app .hggp-icon-btn{border:1px solid #c4d4cd;background:white;border-radius:50%;min-width:44px;min-height:44px;font:24px inherit;cursor:pointer}
.hggp-app .hggp-guide-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:12px 0 26px}.hggp-app .hggp-guide-steps button{min-height:44px;padding:6px 3px;border:1px solid #d4ded9;border-radius:9px;background:#fff;color:#33594e;cursor:pointer;font:inherit}.hggp-app .hggp-guide-steps span{display:block;font-size:.64rem;line-height:1.6}.hggp-app .hggp-guide-steps [aria-current=step]{background:#175c51;color:white;border-color:#175c51}.hggp-app .hggp-guide section{min-height:180px}.hggp-app .hggp-guide footer{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.hggp-app .hggp-guide footer .hggp-btn{width:auto;min-width:0}.hggp-app .hggp-eyebrow{font-size:.82rem;color:#98642c}
.hggp-app .hggp-date-launch{border:0;background:#e5f2ec;color:#165c4d;min-height:36px;padding:4px 10px;border-radius:6px;cursor:pointer;font:inherit;font-size:.8rem}.hggp-app .hggp-inline .hggp-date-launch{display:block;width:100%;margin-top:3px;line-height:1.6}
.hggp-app .hggp-cal{position:fixed;inset:0;margin:auto;width:min(360px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:14px;overflow:auto;color:#284b40;direction:rtl}.hggp-app .hggp-cal::backdrop{background:#132c235e}.hggp-app .hggp-cal__nav{display:grid;grid-template-columns:34px minmax(0,1fr) 80px 34px;gap:5px}.hggp-app .hggp-cal select{min-width:0;max-width:100%;background:#fff;border:1px solid #becfc6;border-radius:7px;font:inherit;font-size:14px;padding:4px}.hggp-app .hggp-cal__grid{text-align:center;gap:3px}.hggp-app .hggp-cal button{min-height:38px;font:inherit;color:inherit}.hggp-app .hggp-cal button:disabled{opacity:.3;cursor:default}.hggp-app .hggp-cal__close{width:100%;margin-top:12px}.hggp-app button:focus-visible,.hggp-app input:focus-visible,.hggp-app select:focus-visible{outline:2px solid #0f766e;outline-offset:2px}.hggp-app button:disabled{cursor:default;opacity:.45}
@media(max-width:720px){.hggp-app .hggp-intro.has-video{grid-template-columns:1fr;gap:18px}.hggp-app .hggp-video{position:static}.hggp-app .hggp-hero__seal{flex-basis:94px;font-size:.9rem}.hggp-app .hggp-hero{gap:16px}.hggp-app .hggp-asset-fields,.hggp-app .hggp-part__fields{grid-template-columns:minmax(0,1fr);gap:4px}.hggp-app .hggp-intro{padding:18px}.hggp-app .hggp-roles__head .hggp-btn{width:auto;min-width:0}.hggp-app .hggp-asset-section,.hggp-app .hggp-installments{padding:12px}.hggp-app .hggp-deed__meta{display:grid;gap:8px;text-align:right}.hggp-app .hggp-guide-steps span{display:none}.hggp-app .hggp-guide{padding:18px}}
@media(max-width:380px){.hggp-app{padding:12px 8px 32px}.hggp-app .hggp-deed{padding:14px 10px}.hggp-app .hggp-deed__head{margin:-14px -10px 18px;padding:14px 10px}.hggp-app .hggp-toolbar .hggp-btn{font-size:.78rem;padding:9px 8px;flex:1}.hggp-app .hggp-hero__seal{display:none}.hggp-app .hggp-billing-preview{padding:14px}.hggp-app .hggp-section-title{align-items:start}}
.hggp-app .hggp-hero__seal>*{display:block}.hggp-app .hggp-hero__seal small{font-size:.65rem;font-weight:400;margin-top:8px}
.hggp-app .hggp-video{aspect-ratio:auto}.hggp-app .hggp-video__frame{aspect-ratio:100/57}.hggp-app .hggp-video small{display:block;color:#d8eee5;font-size:.78rem;padding:6px 12px}
.hggp-app .hggp-fee-detail{padding:16px;border:1px solid #c8d6e6;background:#f2f6fa;border-radius:12px;margin:18px 0}.hggp-app .hggp-fee-detail>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:8px 0}.hggp-app .hggp-fee-detail dd{margin:0;font-weight:700}.hggp-app .hggp-fee-total{border-top:1px solid #bccfdc;color:#175c51}
@media(max-width:720px){.hggp-app .hggp-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hggp-app .hggp-toolbar .hggp-btn{width:100%;min-width:0;font-size:.82rem;padding:9px 7px;line-height:1.7}}

/* Preserve a readable, selectable date and 44px touch targets at 320px and above. */
.hggp-app .hggp-cal{width:min(376px,calc(100vw - 12px));max-width:100vw;padding:6px;border:1px solid #b9d4cc}
.hggp-app .hggp-cal__nav{grid-template-columns:44px minmax(0,1fr) 80px 44px}
.hggp-app .hggp-cal button,.hggp-app .hggp-cal select{min-height:44px;padding:2px}
.hggp-app .hggp-cal__grid button{min-width:0}.hggp-app .hggp-cal__grid .is-selected{background:#175c51;color:#fff;box-shadow:inset 0 0 0 2px #175c51}
.hggp-app .hggp-field-error{display:block;color:#9b2929;font-size:.85rem;line-height:1.8;margin-top:6px}
.hggp-app [aria-invalid=true]{border-color:#b13b36!important}
@media(max-width:359px){.hggp-app .hggp-cal{width:100vw;padding:2px}.hggp-app .hggp-cal__grid{gap:1px}}

/* 2.2: compact scoped layouts and progressive-confirmation form. */
.hggp-app{width:100%;max-width:1120px;margin-inline:auto;padding:14px 0 28px}
.hggp-app .hggp-sales{padding:20px;margin-bottom:16px;background:#f8fbf9;border:1px solid #cfdfd7;border-radius:12px}
.hggp-app .hggp-sales.has-video,.hggp-app .hggp-intro-row.has-video{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);align-items:start;gap:20px}
.hggp-app .hggp-sales__copy{min-width:0}.hggp-app .hggp-hero__brand{font-size:clamp(30px,5vw,44px);letter-spacing:0;margin:0 0 8px;color:#185b50}
.hggp-app .hggp-hero__slogan{font-size:17px;max-width:none}.hggp-app .hggp-sales__lead{margin:10px 0;font-size:15px}
.hggp-app .hggp-sales__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 8px}
.hggp-app .hggp-sales__card{border:0;border-right:2px solid #99bdb0;border-radius:0;padding:4px 10px;background:transparent;box-shadow:none}
.hggp-app .hggp-sales__card h3{font-size:15px;margin:0 0 4px}.hggp-app .hggp-sales__card p{font-size:13px;margin:0;line-height:1.85}
.hggp-app .hggp-sales__context{font-size:13px;margin:8px 0 0;color:#4f675d}
.hggp-app .hggp-intro-row{margin-bottom:16px}.hggp-app .hggp-intro-row .hggp-intro{margin:0;border-radius:12px;padding:18px}
.hggp-app .hggp-intro-row .hggp-intro h2{font-size:20px;margin:0 0 8px}.hggp-app .hggp-intro-row .hggp-intro p{margin:0;font-size:15px}
.hggp-app .hggp-video{box-shadow:none;border-radius:10px}.hggp-app .hggp-roles{padding:14px 0;margin:0}
.hggp-app .hggp-roles>p{margin:0 0 10px;font-size:14px}.hggp-app .hggp-role{padding:14px;border-radius:10px}
.hggp-app .hggp-service-note{border-right:3px solid #c8aa72;background:#fffbf2;padding:10px 14px;margin:12px 0 18px;font-size:13px;color:#675338;border-radius:6px}
.hggp-app .hggp-service-note p{margin:3px 0}.hggp-app .hggp-list-panel{padding:18px;border:1px solid #cddcd5;border-radius:12px;background:#fff}
.hggp-app .hggp-list-panel .hggp-head{padding:0;border:0;background:none;margin:0 0 12px}.hggp-app .hggp-list-panel .hggp-head h2{margin:0;font-size:22px}
.hggp-app .hggp-list-panel .hggp-filters{margin:0 0 14px}.hggp-app .hggp-list-panel .hggp-empty{margin:0;padding:16px 0;border:0;background:none;border-radius:0;font-size:15px}
.hggp-app .hggp-toolbar{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.hggp-app .hggp-toolbar .hggp-btn{width:auto;flex:0 1 auto;min-height:44px}.hggp-app .hggp-toolbar .hggp-pdf-help{flex-basis:100%;font-size:13px;text-align:right;color:#596b63}
.hggp-app .hggp-history-pdfs{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;margin:10px 0}
.hggp-app .hggp-deed{padding:18px;border-radius:12px}.hggp-app .hggp-deed__head{margin:-18px -18px 16px;padding:16px 18px;border-radius:12px 12px 0 0}
.hggp-app .hggp-step-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.hggp-app .hggp-step-head h3{margin:0!important;font-size:19px}.hggp-app .hggp-step-edit{display:inline-flex;width:auto;min-height:44px;align-items:center;justify-content:center;padding:6px 12px;border:1px solid #b2c8bf;border-radius:8px;background:#fff;color:#235a4b;font:inherit;font-size:14px;cursor:pointer}
.hggp-app .hggp-step-summary{margin:0;font-size:14px;color:#365c4d;overflow-wrap:anywhere}.hggp-app [data-step]{margin:16px 0;padding:16px;border-width:1px;border-radius:10px}
.hggp-app [data-step="asset"]{background:#f5faf7}.hggp-app [data-step="repayment"]{background:#fffaf0}.hggp-app [data-step="fee"]{background:#f1f6fa}
.hggp-app [data-step].is-current{border-color:#6a9d88}.hggp-app [data-step-confirm]{margin-top:12px}
.hggp-app .hggp-part{padding:10px 0;border:0;border-top:1px solid #dfd6c6;border-radius:0;margin:14px 0;background:transparent}
.hggp-app .hggp-part legend{font-size:15px;padding:0 6px}.hggp-app .hggp-signing-hint{font-size:13px;color:#586d63;margin:10px 0}
.hggp-app .hggp-date-control{display:flex;align-items:stretch;gap:6px;width:100%;min-width:0}
.hggp-app .hggp-date-control input{width:0!important;flex:1 1 0;min-width:0!important;margin:0}
.hggp-app .hggp-date-control .hggp-date-launch{display:inline-flex;width:auto;flex:0 0 auto;align-items:center;justify-content:center;margin:0;min-height:44px;padding:6px 10px;background:#ede9fa;border:1px solid #d3c8ed;color:#594184;line-height:1.5;font-size:13px}
.hggp-app .hggp-cal{position:fixed;inset:auto;margin:0;z-index:1000001;width:min(376px,calc(100vw - 12px));max-height:calc(100dvh - 8px);padding:6px;border:1px solid #b9c8df;border-radius:10px;background:#fff;box-shadow:0 8px 32px #22334d30;overflow:auto}
.hggp-app .hggp-cal__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.hggp-app .hggp-cal__grid>span{padding:3px 0;font-size:13px}.hggp-app .hggp-cal button{border:1px solid #dce4ed;background:#f7f9fd;border-radius:6px;cursor:pointer;color:#374b67;min-height:44px;min-width:0}
.hggp-app .hggp-cal__grid .is-selected{background:#5b4b89;color:#fff;box-shadow:none}.hggp-app .hggp-cal__grid .is-today:not(.is-selected){border-color:#5b4b89}
.hggp-app .hggp-otp-panel{border:1px solid #d2dfd8;border-radius:10px;padding:16px;margin:16px 0;background:#f8fbf9}.hggp-app .hggp-otp-panel h3{margin:0 0 10px}.hggp-app .hggp-otp-panel .hggp-form{margin:12px 0;padding:0;border:0;background:none}
.hggp-app .hggp-otp-panel input[name=otp]{max-width:240px;font-size:22px;letter-spacing:6px}
.hggp-app [hidden]{display:none!important}
@media(max-width:720px){
.hggp-app{padding:8px 0 24px}.hggp-app .hggp-sales.has-video,.hggp-app .hggp-intro-row.has-video{grid-template-columns:minmax(0,1fr);gap:12px}
.hggp-app .hggp-sales,.hggp-app .hggp-intro-row .hggp-intro{padding:14px 12px}.hggp-app .hggp-sales__grid{gap:10px 6px}.hggp-app .hggp-hero__slogan{font-size:16px}
.hggp-app .hggp-list-panel{padding:14px 10px}.hggp-app .hggp-role{padding:12px 10px}.hggp-app .hggp-service-note{padding:8px 10px}
.hggp-app .hggp-deed{padding:12px 8px;border-radius:8px}.hggp-app .hggp-deed__head{margin:-12px -8px 12px;padding:12px 8px;border-radius:8px 8px 0 0}
.hggp-app [data-step]{padding:12px 4px;border:0;border-top:2px solid #c7dace;border-radius:0;margin:14px 0}.hggp-app [data-step="repayment"]{border-top-color:#ddc28e}
.hggp-app .hggp-asset-fields,.hggp-app .hggp-part__fields{gap:6px;grid-template-columns:minmax(0,1fr)}.hggp-app .hggp-part{padding:8px 0}
.hggp-app .hggp-toolbar .hggp-btn{font-size:13px;padding:8px 10px;flex:0 1 auto;width:auto}.hggp-app .hggp-step-head h3{font-size:18px}
.hggp-app .hggp-inline.hggp-date-input{display:block;width:100%;max-width:360px;margin:8px 0}.hggp-app .hggp-video{position:static}
}
@media(max-width:359px){.hggp-app .hggp-sales__grid{grid-template-columns:1fr}.hggp-app .hggp-cal{width:100vw;padding:2px}.hggp-app .hggp-cal__grid{gap:1px}}
/* Inline date controls must override the older inline-label span rule. */
.hggp-app .hggp-inline>.hggp-date-control{display:flex;font-size:inherit;line-height:1.6;color:inherit}
.hggp-app .hggp-inline.hggp-date-input{min-width:230px;vertical-align:middle}
.hggp-app .hggp-deed-prose{line-height:2.15;margin:14px 0}
.hggp-app .hggp-deed .hggp-inline input{line-height:1.65}
@media(max-width:720px){.hggp-app .hggp-inline.hggp-date-input{min-width:0;max-width:none}.hggp-app .hggp-deed-prose{font-size:15px;line-height:2.1}}
.hggp-app .hggp-roles{border:0;border-radius:0;background:transparent}
.hggp-app .hggp-roles .hggp-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.hggp-app .hggp-roles .hggp-section-title h2{font-size:20px;margin:0}
.hggp-app .hggp-roles .hggp-section-title .hggp-btn{width:auto;min-width:0;flex:0 0 auto;padding:8px 10px;font-size:13px;min-height:44px}

/* 2.2.1: explicit native-select cue, scoped to the loan interface only. */
.hggp-app select:not([multiple]):not([size]),
.hggp-app select:not([multiple])[size="1"],
.hggp-account select:not([multiple]):not([size]),
.hggp-account select:not([multiple])[size="1"]{
    -webkit-appearance:none!important;appearance:none!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
    background-repeat:no-repeat!important;background-position:left 10px center!important;
    background-size:12px 8px!important;padding-inline-end:32px!important;
}
.hggp-app .hggp-toolbar__actions{
    display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;
    gap:8px;max-width:100%;margin-inline-start:auto;
}
@media(forced-colors:active){
    .hggp-app select:not([multiple]):not([size]),
    .hggp-app select:not([multiple])[size="1"],
    .hggp-account select:not([multiple]):not([size]),
    .hggp-account select:not([multiple])[size="1"]{
        -webkit-appearance:auto!important;appearance:auto!important;background-image:none!important;
    }
}
