.ht-wrap{padding:0 0 28px}.ht-breadcrumb{display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:12px;color:#7a8580;margin-bottom:30px}.ht-breadcrumb a{color:var(--green,#236b4b)}.ht-head{display:flex;align-items:flex-start;gap:20px;max-width:880px;margin:0 0 34px}.ht-head-icon{width:62px;height:62px;border-radius:20px;background:var(--green2,#e6f2eb);color:var(--green,#236b4b);display:grid;place-items:center;font-size:29px;flex:0 0 auto}.ht-label{font-size:11px;color:var(--green,#236b4b);font-weight:800}.ht-head h1{font-size:clamp(30px,4vw,44px);line-height:1.45;margin:5px 0 8px;letter-spacing:-.8px}.ht-head p{color:#65716b;font-size:14px;max-width:760px;margin:0}.ht-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.65fr);gap:20px;align-items:start}.ht-calculator,.ht-result{border:1px solid #e1e9e4;border-radius:24px;background:#fff;box-shadow:0 18px 55px rgba(22,53,39,.06)}.ht-calculator{padding:30px}.ht-calc-title{display:flex;gap:13px;align-items:center;border-bottom:1px solid #edf1ef;padding-bottom:20px;margin-bottom:22px}.ht-calc-title>span{width:42px;height:42px;border-radius:13px;background:#e7f1eb;color:#2f6b52;display:grid;place-items:center;flex:0 0 auto}.ht-calc-title h2{font-size:16px;margin:0}.ht-calc-title p{font-size:11px;color:#7a8580;margin:2px 0 0}.ht-error{background:#fff3f0;border:1px solid #f1c8be;color:#8a3323;border-radius:12px;padding:11px 13px;margin-bottom:17px;font-size:12px}.ht-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.ht-field-wide{grid-column:1/-1}.ht-field-label{font-size:12px;font-weight:800;display:block;margin-bottom:7px}.ht-input{min-height:50px;border:1px solid #dce6e0;border-radius:13px;display:flex;align-items:center;overflow:hidden;background:#fbfdfc;transition:.15s}.ht-input:hover{border-color:#bdcec4}.ht-input:focus-within{border-color:#74a38b;box-shadow:0 0 0 3px #eaf4ee;background:#fff}.ht-input input,.ht-input select{border:0;outline:0;background:transparent;width:100%;min-width:0;height:50px;padding:0 13px;font:14px var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif);color:#17201d}.ht-input input{text-align:right;direction:ltr}.ht-input b{font-size:10px;color:#77837d;padding:0 11px;white-space:nowrap;border-right:1px solid #e6ece8;font-weight:500}.ht-hint{display:block;font-size:10px;color:#89928e;margin-top:6px;line-height:1.65}.ht-check{display:flex;gap:9px;align-items:center;font-size:12px;background:#f7faf8;border:1px solid #e3eae6;border-radius:12px;padding:12px 13px;cursor:pointer}.ht-check input{width:18px;height:18px;accent-color:#2f6b52}.ht-actions{grid-column:1/-1;display:flex;gap:10px;margin-top:5px}.ht-button{border:0;background:#236b4b;color:#fff;border-radius:13px;min-height:52px;padding:0 28px;font:800 13px var(--font-fa,'IRANSansX',Tahoma,sans-serif);cursor:pointer;flex:1;transition:.18s}.ht-button:hover{background:#195a3e;transform:translateY(-1px)}.ht-reset,.ht-copy{border:1px solid #dfe7e2;background:#fff;color:#68736d;border-radius:13px;padding:0 18px;font:12px var(--font-fa,'IRANSansX',Tahoma,sans-serif);cursor:pointer}.ht-reset:hover,.ht-copy:hover{background:#f6f9f7}.ht-result{padding:30px 24px;position:sticky;top:100px;background:#17201d;color:#fff;text-align:center;overflow:hidden}.ht-result:before{content:"";position:absolute;width:180px;height:180px;border:1px solid #34443d;border-radius:50%;left:-80px;top:-80px}.ht-result-label{position:relative;font-size:11px;color:#afbbb5}.ht-result-value{position:relative;font-size:clamp(42px,5vw,58px);font-weight:900;color:#d8eaa3;line-height:1.35;margin-top:14px;direction:ltr}.ht-result-unit{position:relative;font-size:13px;font-weight:700}.ht-result-note{position:relative;font-size:11px;line-height:1.9;color:#b2bdb7;margin-top:18px;border-top:1px solid #34403a;padding-top:16px;min-height:16px}.ht-copy{position:relative;width:100%;height:42px;margin-top:16px;background:transparent;border-color:#45544d;color:#dce3df}.ht-content{margin-top:46px;padding-top:40px;border-top:1px solid #e5ebe7;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:42px}.ht-main-copy h2{font-size:24px;margin:0 0 12px}.ht-main-copy p,.ht-main-copy li{font-size:14px;color:#58645e}.ht-formula{background:#f5f9f6;border:1px solid #e0eae4;border-radius:16px;padding:18px 20px;margin:25px 0 30px}.ht-formula strong{font-size:12px;color:#236b4b}.ht-formula p{margin:6px 0 0}.ht-tips{padding-right:20px;margin:0}.ht-tips li{margin-bottom:8px}.ht-side-note{align-self:start;background:#fffaf0;border:1px solid #eee0bd;border-radius:18px;padding:19px}.ht-side-note strong{font-size:13px;color:#6e5722}.ht-side-note p{font-size:11px;line-height:1.9;color:#746a50;margin-bottom:0}.ht-faq{margin-top:34px}.ht-faq details{border-top:1px solid #e6ece8;padding:15px 0}.ht-faq details:last-child{border-bottom:1px solid #e6ece8}.ht-faq summary{cursor:pointer;font-weight:800;font-size:13px}.ht-faq p{margin:8px 0 0}.ht-related{margin-top:50px}.ht-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.ht-section-title span{font-size:20px;font-weight:900}.ht-section-title a{font-size:11px;color:#236b4b}.ht-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ht-related-grid>a{border:1px solid #e2e9e5;border-radius:16px;padding:16px;display:flex;gap:11px;align-items:center;transition:.18s}.ht-related-grid>a:hover{border-color:#aac5b6;transform:translateY(-2px)}.ht-related-grid b{width:40px;height:40px;border-radius:12px;background:#e8f2ec;color:#236b4b;display:grid;place-items:center;flex:0 0 auto}.ht-related-grid span{min-width:0}.ht-related-grid strong,.ht-related-grid small{display:block}.ht-related-grid strong{font-size:12px}.ht-related-grid small{font-size:9px;color:#7b8580;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.hendese-all-tools .lead{font-size:15px;color:#66716b;margin-bottom:35px}.hat-section{margin:0 0 46px}.hat-section>h2{font-size:26px;margin-bottom:5px}.hat-section>p{font-size:12px;color:#7a8580;margin:0 0 17px}.hat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hat-grid>a{display:flex;gap:12px;align-items:center;border:1px solid #e1e9e4;border-radius:16px;padding:16px;background:#fff}.hat-grid b{width:42px;height:42px;border-radius:12px;background:#e8f2ec;color:#236b4b;display:grid;place-items:center}.hat-grid span{min-width:0}.hat-grid strong,.hat-grid small{display:block}.hat-grid strong{font-size:13px}.hat-grid small{font-size:10px;color:#78837d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
@media(max-width:900px){.ht-layout{grid-template-columns:1fr}.ht-result{position:static}.ht-content{grid-template-columns:1fr}.ht-side-note{max-width:none}.ht-related-grid{grid-template-columns:repeat(2,1fr)}.hat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.ht-head{gap:13px}.ht-head-icon{width:50px;height:50px;border-radius:15px;font-size:23px}.ht-head h1{font-size:29px}.ht-head p{font-size:12px}.ht-calculator{padding:20px 16px}.ht-form{grid-template-columns:1fr}.ht-field-wide,.ht-actions{grid-column:auto}.ht-actions{flex-direction:column}.ht-button{min-height:50px;flex:none}.ht-reset{height:44px}.ht-result{padding:24px 18px}.ht-content{margin-top:36px;padding-top:32px}.ht-main-copy h2{font-size:21px}.ht-main-copy p,.ht-main-copy li{font-size:13px}.ht-related-grid,.hat-grid{grid-template-columns:1fr}.ht-section-title span{font-size:18px}}

/* ابزارهای زمان، مالی و دیجیتال */
.ht-input input[type="date"]{color-scheme:light;direction:ltr;text-align:left;min-width:0}
.ht-result-value{overflow-wrap:anywhere;word-break:normal}
.ht-wrap[data-tool="loan"] .ht-result-value,.ht-wrap[data-tool="compound"] .ht-result-value{font-size:clamp(30px,4vw,46px)}
.ht-wrap[data-tool="aspect_ratio"] .ht-result-value{font-family:var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif);letter-spacing:.02em}
@media(max-width:620px){.ht-wrap[data-tool="loan"] .ht-result-value,.ht-wrap[data-tool="compound"] .ht-result-value{font-size:32px}}

/* Age — سه تقویمی */
.ht-wrap[data-tool="age"] .ht-result-value{font-size:clamp(26px,3vw,38px);line-height:1.65}.ht-wrap[data-tool="age"] .ht-result-note{white-space:pre-line;text-align:right;direction:rtl}

/* V3.1 — time, calendar, market, BMI and richer results */
.ht-textarea{border:1px solid #dce6e0;border-radius:13px;background:#fbfdfc;overflow:hidden}.ht-textarea:focus-within{border-color:#74a38b;box-shadow:0 0 0 3px #eaf4ee;background:#fff}.ht-textarea textarea{width:100%;min-height:180px;resize:vertical;border:0;outline:0;background:transparent;padding:14px;font:13px/1.9 var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif);color:#17201d;direction:rtl}
.ht-live-controls{display:flex;flex-wrap:wrap;gap:8px}.ht-secondary-action{min-height:42px;border:1px solid #dce6e0;border-radius:11px;background:#fff;color:#236b4b;padding:0 16px;font:800 11px var(--font-fa,'IRANSansX',Tahoma,sans-serif);cursor:pointer}.ht-secondary-action:hover{background:#f1f7f3;border-color:#abc6b8}
.ht-result-cards{display:grid;grid-template-columns:1fr;gap:7px;text-align:right}.ht-result-cards>span{display:block;padding:10px 11px;border:1px solid #394840;border-radius:10px;background:rgba(255,255,255,.035)}.ht-result-cards small,.ht-result-cards b{display:block}.ht-result-cards small{color:#93a199;font-size:9px}.ht-result-cards b{color:#f3f7f4;font-size:11px;margin-top:3px}.ht-result-details{text-align:right;margin-top:10px}.ht-result-details p{margin:4px 0;color:#b8c3bd;font-size:10px}.ht-result-details b{color:#fff}
.ht-world-clock{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ht-world-clock>div{border:1px solid #e1e9e4;border-radius:13px;background:#fbfdfc;padding:13px}.ht-world-clock span,.ht-world-clock b,.ht-world-clock small{display:block}.ht-world-clock span{font-size:10px;color:#6f7b75}.ht-world-clock b{font-size:18px;margin:4px 0;color:#17201d;direction:ltr;text-align:right}.ht-world-clock small{font-size:8px;color:#8d9892}
.ht-laps{list-style:none;padding:0;margin:0;display:grid;gap:6px}.ht-laps li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e6ece8;padding:8px 2px;font-size:10px}.ht-laps b{direction:ltr}
.ht-calendar-output{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:5px}.ht-month{border:1px solid #e1e9e4;border-radius:14px;background:#fff;padding:11px;min-width:0}.ht-month h3{margin:0 0 9px;font-size:11px}.ht-week,.ht-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}.ht-week span{font-size:7px;color:#7c8881;padding:3px 0}.ht-days b,.ht-days i{display:grid;place-items:center;min-height:25px;border-radius:6px;font-size:8px;font-style:normal}.ht-days b{background:#f5f8f6;color:#26322c}.ht-days b:hover{background:#e6f2eb;color:#236b4b}
.ht-crypto-status{font-size:10px;color:#65716b;margin:2px 0 10px}.ht-crypto-table-wrap{width:100%;overflow-x:auto;border:1px solid #e0e8e3;border-radius:14px;background:#fff}.ht-crypto-table{width:100%;min-width:680px;border-collapse:collapse;text-align:right}.ht-crypto-table th,.ht-crypto-table td{padding:12px 10px;border-bottom:1px solid #edf1ef;font-size:10px;white-space:nowrap}.ht-crypto-table th{background:#f6f9f7;color:#66726c;font-size:8px}.ht-crypto-table tr:last-child td{border-bottom:0}.ht-crypto-table td:first-child strong,.ht-crypto-table td:first-child small{display:block}.ht-crypto-table td:first-child small{color:#8a9690;margin-top:2px;direction:ltr}.ht-crypto-table .is-up{color:#217a50}.ht-crypto-table .is-down{color:#b34a3b}
.ht-wrap[data-tool="age"] .ht-result-value,.ht-wrap[data-tool="date_convert"] .ht-result-value{font-size:clamp(22px,3vw,34px)}.ht-wrap[data-tool="crypto"] .ht-layout{grid-template-columns:minmax(0,1fr)}.ht-wrap[data-tool="crypto"] .ht-result{position:static;display:none}.ht-wrap[data-tool="crypto"] .ht-calculator{max-width:none}.ht-wrap[data-tool="crypto"] .ht-form{grid-template-columns:1fr}.ht-wrap[data-tool="crypto"] .ht-actions{max-width:260px}.ht-wrap[data-tool="world_clock"] .ht-layout,.ht-wrap[data-tool="stopwatch"] .ht-layout{grid-template-columns:minmax(0,1.25fr) minmax(260px,.55fr)}
@media(max-width:900px){.ht-calendar-output{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-wrap[data-tool="world_clock"] .ht-layout,.ht-wrap[data-tool="stopwatch"] .ht-layout{grid-template-columns:1fr}}
@media(max-width:620px){.ht-world-clock,.ht-calendar-output{grid-template-columns:1fr}.ht-live-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ht-secondary-action{padding:0 8px}.ht-result-cards>span{padding:9px}.ht-crypto-table th,.ht-crypto-table td{padding:10px 8px}}

/* Hendese Tools 3.2 — UI polish */
.ht-wrap{--green:var(--brand,#126a4b);--green2:var(--brand-soft,#e8f5ee);font-family:var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif);padding-top:6px}
.ht-breadcrumb{font-size:13px;margin-bottom:34px}.ht-head{gap:22px;margin-bottom:38px}.ht-head-icon{width:68px;height:68px;border-radius:21px;font-size:30px;box-shadow:inset 0 0 0 1px rgba(18,106,75,.05)}.ht-label{font-size:12px}.ht-head h1{font-size:clamp(32px,4vw,48px);letter-spacing:-.7px}.ht-head p{font-size:15px;line-height:2}
.ht-layout{grid-template-columns:minmax(0,1.6fr) minmax(290px,.64fr);gap:24px}.ht-calculator,.ht-result{border-radius:26px;box-shadow:0 20px 62px rgba(20,55,42,.07)}.ht-calculator{padding:34px}.ht-calc-title h2{font-size:18px}.ht-calc-title p{font-size:12px}.ht-field-label{font-size:13px}.ht-input{min-height:54px;border-radius:14px}.ht-input input,.ht-input select{height:54px;font-size:15px!important}.ht-input b{font-size:11px}.ht-hint{font-size:11px}.ht-check{font-size:13px}.ht-button{min-height:54px;font-size:14px!important;border-radius:14px}.ht-reset,.ht-copy{font-size:12px!important}.ht-result{padding:34px 26px;background:linear-gradient(145deg,#14251e,#0e1d17)}.ht-result-label{font-size:12px}.ht-result-unit{font-size:14px}.ht-result-note{font-size:12px}.ht-content{margin-top:52px;gap:48px}.ht-main-copy h2{font-size:26px}.ht-main-copy p,.ht-main-copy li{font-size:15px;line-height:2}.ht-formula strong{font-size:13px}.ht-side-note strong{font-size:14px}.ht-side-note p{font-size:12px}.ht-faq summary{font-size:14px}.ht-related-grid strong{font-size:13px}.ht-related-grid small{font-size:10px}
.ht-textarea textarea{font-family:var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif)!important;font-size:14px!important}.ht-secondary-action{font-family:var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif)!important;font-size:12px!important}.ht-result-cards small{font-size:10px}.ht-result-cards b{font-size:12px}.ht-result-details p{font-size:11px}.ht-world-clock span{font-size:11px}.ht-world-clock small{font-size:9px}.ht-crypto-status{font-size:11px}.ht-crypto-table th,.ht-crypto-table td{font-size:11px}.ht-crypto-table th{font-size:9px}
.ht-oghat-launch{grid-column:1/-1;padding:24px;border:1px solid #dce7e1;border-radius:20px;background:linear-gradient(135deg,#f6faf7,#fff)}.ht-oghat-launch h3{margin:0 0 7px;font-size:18px}.ht-oghat-launch p{margin:0 0 16px;color:#65736c;font-size:13px}.ht-oghat-launch a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:13px;background:var(--brand,#126a4b);color:#fff;font-weight:800;font-size:13px}
@media(max-width:620px){.ht-head p{font-size:13px}.ht-calculator{padding:22px 17px}.ht-main-copy p,.ht-main-copy li{font-size:14px}.ht-layout{gap:16px}}

/* V4.0 — advanced tools, share links and richer calendar */
.ht-result:before{display:none!important}.ht-result-actions{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}.ht-result-actions .ht-copy,.ht-result-actions .ht-share{width:100%;height:42px;margin:0;background:transparent;border:1px solid #45544d;color:#dce3df;border-radius:13px;font:12px var(--font-fa,'IRANSansX',Tahoma,sans-serif);cursor:pointer}.ht-result-actions .ht-copy:hover,.ht-result-actions .ht-share:hover{background:rgba(255,255,255,.06)}
.ht-calendar-detail{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;background:#f5faf7;border:1px solid #dfeae4;border-radius:14px;padding:13px 15px;margin-bottom:12px;font-size:11px;color:#5e6c65}.ht-calendar-detail strong{color:#173c2d}.ht-days .ht-day{display:grid;place-items:center;min-height:30px;border:0;border-radius:7px;background:#f5f8f6;color:#26322c;font:800 9px var(--font-fa,'IRANSansX',Tahoma,sans-serif);cursor:pointer}.ht-days .ht-day:hover,.ht-days .ht-day.is-selected{background:#dff0e6;color:#126a4b;box-shadow:inset 0 0 0 1px #9fcbb5}
.ht-sci-shortcuts{display:flex;flex-wrap:wrap;gap:7px}.ht-sci-shortcuts button{min-width:54px;height:38px;border:1px solid #dce6e0;border-radius:10px;background:#fff;color:#214f3c;font:800 11px var(--font-fa,'IRANSansX',Tahoma,sans-serif);cursor:pointer}.ht-sci-shortcuts button:hover{background:#edf7f1}.ht-history{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px}.ht-history li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e7ede9;padding:7px 2px;font-size:10px}.ht-history button{border:0;background:none;padding:0;color:#486459;font:inherit;cursor:pointer;direction:ltr;text-align:left}.ht-history b{direction:ltr}
.ht-graph{display:block;width:100%;height:360px;border:1px solid #dce7e1;border-radius:16px;background:linear-gradient(#fff,#fbfdfc)}.ht-graph-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:8px;font-size:10px;color:#6e7c75}.ht-graph-meta b{color:#173c2d}.ht-wrap[data-tool="graph"] .ht-result-value{font-size:clamp(22px,3vw,32px)}
.ht-image-canvas{max-width:100%;height:auto;border:1px solid #dce7e1;border-radius:14px;background:#f8faf9}.ht-download-image{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:12px;background:#126a4b;color:#fff;font-weight:800;font-size:12px;margin-top:10px}.ht-wrap[data-tool="image_resize"] input[type="file"]{direction:rtl;text-align:right;padding:10px;height:auto}
.ht-wrap[data-tool="loan"] .ht-result-note{font-size:12px}.ht-wrap[data-tool="date_math"] .ht-result-value,.ht-wrap[data-tool="weekday"] .ht-result-value{font-size:clamp(24px,3vw,36px)}
@media(max-width:620px){.ht-result-actions{grid-template-columns:1fr}.ht-calendar-detail{display:grid}.ht-graph{height:300px}.ht-sci-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.ht-sci-shortcuts button{width:100%}}

/* V4.0: لینک‌های خزشی تقویم */
.ht-calendar-seo-nav{margin:22px 0;padding:18px;border:1px solid var(--ht-line,#e4ece8);border-radius:18px;background:#fff;display:grid;gap:15px}.ht-calendar-seo-nav strong{display:block;font-size:12px;margin-bottom:8px;color:var(--ht-ink,#14261f)}.ht-calendar-year-links>div,.ht-calendar-month-links>div{display:flex;flex-wrap:wrap;gap:6px}.ht-calendar-seo-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:5px 10px;border:1px solid var(--ht-line,#e4ece8);border-radius:9px;background:#f8faf9;color:var(--ht-ink,#14261f);font-size:10px;font-weight:800;text-decoration:none}.ht-calendar-seo-nav a:hover,.ht-calendar-seo-nav a.active{background:var(--ht-brand,#126a4b);border-color:var(--ht-brand,#126a4b);color:#fff}@media(max-width:560px){.ht-calendar-seo-nav{padding:14px}.ht-calendar-month-links>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.ht-calendar-seo-nav a{padding-inline:5px;font-size:9px}}

/* V5.0 — digital toolbox and business calculators */
.ht-qr-output{min-height:120px;display:grid;place-items:center;border:1px dashed #cfded6;border-radius:16px;background:#f8fbf9;padding:16px;overflow:hidden}.ht-qr-output img{display:block;max-width:min(100%,500px);height:auto;border-radius:12px;background:#fff}.ht-loading{font-size:12px;color:#708078}.ht-code-list{display:grid;gap:7px;max-height:240px;overflow:auto;text-align:left;direction:ltr}.ht-code-list code{display:block;padding:8px 10px;border-radius:8px;background:rgba(255,255,255,.08);overflow-wrap:anywhere;font-size:11px}.ht-color-preview{height:82px;border:1px solid #dbe5df;border-radius:14px;background:#7c3aed;box-shadow:inset 0 0 0 5px #fff}.ht-wrap[data-tool="text_cleaner"] .ht-result-value,.ht-wrap[data-tool="number_converter"] .ht-result-value,.ht-wrap[data-tool="slug_maker"] .ht-result-value,.ht-wrap[data-tool="json_formatter"] .ht-result-value,.ht-wrap[data-tool="base64_tool"] .ht-result-value,.ht-wrap[data-tool="password_generator"] .ht-result-value,.ht-wrap[data-tool="uuid_generator"] .ht-result-value{font-size:clamp(16px,2vw,23px);white-space:pre-wrap;text-align:left;direction:ltr;line-height:1.8}.ht-wrap[data-tool="text_cleaner"] .ht-result-value,.ht-wrap[data-tool="number_converter"] .ht-result-value{direction:rtl;text-align:right}.ht-wrap[data-tool="image_compress"] input[type="file"],.ht-wrap[data-tool="image_convert"] input[type="file"]{direction:rtl;text-align:right;padding:10px;height:auto}.ht-wrap[data-tool="qr_generator"] .ht-result-value{font-size:clamp(24px,3vw,36px)}
@media(max-width:620px){.ht-qr-output{padding:10px}.ht-color-preview{height:64px}.ht-code-list code{font-size:10px}}

/* Hendese Tools V7 / Site V10 */
.ht-qr-output canvas{display:block;width:min(100%,500px);height:auto;aspect-ratio:1/1;border-radius:12px;background:#fff;image-rendering:pixelated}
.ht-partner-cta{margin:18px 0 0;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:15px 17px;border:1px solid #dbe8e2;border-radius:18px;background:linear-gradient(135deg,#f8fcfa,#fff);box-shadow:0 8px 24px rgba(17,65,45,.045)}
.ht-partner-cta>span{font-size:10px;font-weight:900;color:#087653;background:#e8f6ef;border-radius:999px;padding:6px 9px}.ht-partner-cta strong{display:block;font-size:14px;color:#17221d}.ht-partner-cta p{margin:4px 0 0;font-size:11px;color:#67766f;line-height:1.7}.ht-partner-cta a{white-space:nowrap;text-decoration:none;background:#17221d;color:#fff;border-radius:12px;padding:10px 13px;font-size:11px;font-weight:800}.ht-partner-cta a:hover{background:#087653}
@media(max-width:620px){.ht-partner-cta{grid-template-columns:auto 1fr;padding:13px}.ht-partner-cta a{grid-column:1/-1;text-align:center}.ht-qr-output canvas{width:min(100%,360px)}}

/* Hendese Tools V8 / Site V11 — health tools */
.ht-local-tools{display:grid;gap:12px;margin-top:4px;padding:14px;border:1px solid #dfe9e4;border-radius:16px;background:#f9fcfa}.ht-local-tools .ht-hint{margin:0;color:#65766e}.ht-local-empty{margin:0;padding:12px;border:1px dashed #cfded6;border-radius:12px;color:#6c7b74;font-size:12px;line-height:1.8;background:#fff}.ht-local-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:#eef8f3}.ht-local-summary b{font-size:13px;color:#163c2d}.ht-local-summary span{font-size:10px;color:#557268}.ht-local-table{overflow:auto;max-width:100%;border:1px solid #e3ebe7;border-radius:12px;background:#fff}.ht-local-table table{width:100%;border-collapse:collapse;min-width:480px}.ht-local-table th,.ht-local-table td{padding:9px 10px;border-bottom:1px solid #edf1ef;text-align:right;white-space:nowrap;font-size:10px}.ht-local-table th{background:#f7faf8;color:#52645b;font-weight:900}.ht-local-table tr:last-child td{border-bottom:0}.ht-period-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-period-cards>span{display:grid;gap:3px}.ht-period-cards em{font-style:normal;font-size:9px;color:#7b8b83;direction:ltr}.ht-wrap[data-tool="sleep_calc"] .ht-result-value,.ht-wrap[data-tool="pregnancy_calc"] .ht-result-value,.ht-wrap[data-tool="period_calendar"] .ht-result-value{font-size:clamp(24px,3vw,36px)}
@media(max-width:620px){.ht-local-summary{align-items:flex-start;flex-direction:column;gap:3px}.ht-period-cards{grid-template-columns:1fr}.ht-local-table table{min-width:430px}}
.ht-health-sources{margin-top:22px;padding:15px 16px;border:1px solid #dfe9e4;border-radius:15px;background:#f8fbf9;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.ht-health-sources strong{font-size:12px;color:#173c2d;margin-left:4px}.ht-health-sources a{font-size:10px;font-weight:800;color:#087653;text-decoration:none;border-bottom:1px dashed #9bc8b5}.ht-health-sources a:hover{color:#0b503a}


/* Hendese Tools 8.0.1 — خوانایی بیشتر نتیجه‌ها در دسکتاپ */
@media (min-width:901px){
  .ht-result{padding:38px 30px}
  .ht-result-label{font-size:13px}
  .ht-result-value{font-size:clamp(50px,5.4vw,72px);line-height:1.28;letter-spacing:-.025em}
  .ht-result-unit{font-size:16px;line-height:1.8}
  .ht-result-note{font-size:14px;line-height:2;padding-top:18px;margin-top:20px}
  .ht-result-actions .ht-copy,.ht-result-actions .ht-share{font-size:13px;min-height:44px}
  .ht-result-cards{gap:9px}
  .ht-result-cards>span{padding:12px 13px}
  .ht-result-cards small{font-size:11px;line-height:1.7}
  .ht-result-cards b{font-size:14px;line-height:1.8;margin-top:4px}
  .ht-result-details p{font-size:13px;line-height:1.9;margin:6px 0}
  .ht-local-summary{padding:12px 14px}
  .ht-local-summary b{font-size:15px}
  .ht-local-summary span{font-size:12px}
  .ht-local-table th,.ht-local-table td{font-size:12px;padding:11px 12px}
  .ht-period-cards em{font-size:11px}
  .ht-crypto-status{font-size:12px}
  .ht-crypto-table th,.ht-crypto-table td{font-size:12px}
  .ht-crypto-table th{font-size:10px}
  .ht-wrap[data-tool="loan"] .ht-result-value,
  .ht-wrap[data-tool="compound"] .ht-result-value{font-size:clamp(38px,4.2vw,54px)}
  .ht-wrap[data-tool="age"] .ht-result-value{font-size:clamp(32px,3.5vw,44px);line-height:1.6}
  .ht-wrap[data-tool="sleep_calc"] .ht-result-value,
  .ht-wrap[data-tool="pregnancy_calc"] .ht-result-value,
  .ht-wrap[data-tool="period_calendar"] .ht-result-value{font-size:clamp(30px,3.4vw,44px)}
  .ht-wrap[data-tool="date_math"] .ht-result-value,
  .ht-wrap[data-tool="weekday"] .ht-result-value{font-size:clamp(30px,3.4vw,44px)}
  .ht-wrap[data-tool="graph"] .ht-result-value{font-size:clamp(26px,3vw,38px)}
  .ht-wrap[data-tool="text_cleaner"] .ht-result-value,
  .ht-wrap[data-tool="number_converter"] .ht-result-value,
  .ht-wrap[data-tool="slug_maker"] .ht-result-value,
  .ht-wrap[data-tool="json_formatter"] .ht-result-value,
  .ht-wrap[data-tool="base64_tool"] .ht-result-value,
  .ht-wrap[data-tool="password_generator"] .ht-result-value,
  .ht-wrap[data-tool="uuid_generator"] .ht-result-value{font-size:clamp(19px,2.3vw,27px)}
}


/* Hendese Tools 8.1 / Site V12 — UX polish */
.ht-field-label{display:flex;align-items:center;gap:7px}.ht-required{font-style:normal;font-size:8px;line-height:1;padding:4px 6px;border-radius:999px;background:#fff0ed;color:#9d3b2d;font-weight:900}.ht-field.is-invalid .ht-input{border-color:#d76b59!important;box-shadow:0 0 0 3px #fff0ed!important;background:#fffafa}.ht-field.is-invalid .ht-field-label{color:#9d3b2d}
.ht-tool-meta-strip{display:flex;flex-wrap:wrap;gap:7px;margin:-14px 0 24px}.ht-tool-meta-strip>a,.ht-tool-meta-strip>span{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:5px 10px;border:1px solid #e0e9e4;border-radius:999px;background:#fbfdfc;color:#586a61;font-size:10px;font-weight:800;text-decoration:none}.ht-tool-meta-strip>a:hover{border-color:#a8c7b8;color:#176747}.ht-tool-meta-strip .is-private{background:#eff9f4;border-color:#cce6d9;color:#176747}
.ht-result{background:linear-gradient(160deg,#13241d 0%,#172f25 60%,#1b372b 100%)}.ht-result-kicker{position:relative;display:inline-flex;margin-bottom:6px;padding:4px 8px;border-radius:999px;background:rgba(216,234,163,.1);color:#d8eaa3;font-size:9px;font-weight:900}.ht-result-helper{position:relative;display:block;color:#81918a;font-size:9px;line-height:1.8;margin-top:12px}.ht-wrap.has-result .ht-result{box-shadow:0 20px 60px rgba(14,55,37,.17)}.ht-wrap.has-result .ht-result-kicker{background:rgba(216,234,163,.16)}
.ht-next-steps{margin-top:44px;padding:24px;border:1px solid #dfe8e3;border-radius:22px;background:linear-gradient(135deg,#f5fbf8,#fff)}.ht-next-steps .ht-section-title{margin-bottom:14px}.ht-next-steps .ht-section-title div{display:grid;gap:2px}.ht-next-steps .ht-section-title small{font-size:9px;font-weight:900;color:#17704f}.ht-next-steps .ht-section-title span{font-size:18px}.ht-next-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ht-next-grid>a{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:13px;border:1px solid #e0e9e4;border-radius:15px;background:#fff;text-decoration:none;transition:.17s}.ht-next-grid>a:hover{transform:translateY(-2px);border-color:#a5c5b6;box-shadow:0 10px 25px rgba(23,84,57,.07)}.ht-next-grid b{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#eaf5ef;color:#176747}.ht-next-grid span{min-width:0}.ht-next-grid strong,.ht-next-grid small{display:block}.ht-next-grid strong{font-size:11px;color:#1b2b24}.ht-next-grid small{font-size:9px;line-height:1.7;color:#74837c;margin-top:2px}.ht-next-grid i{font-style:normal;color:#17704f}
@media(min-width:901px){.ht-field-label{font-size:13px}.ht-input input,.ht-input select{font-size:15px}.ht-hint{font-size:11px}.ht-calc-title h2{font-size:18px}.ht-calc-title p{font-size:12px}.ht-button{font-size:14px}.ht-result-helper{font-size:11px}.ht-result-kicker{font-size:10px}}
@media(max-width:700px){.ht-tool-meta-strip{margin-top:-8px}.ht-tool-meta-strip>span,.ht-tool-meta-strip>a{font-size:9px}.ht-next-steps{padding:16px}.ht-next-grid{grid-template-columns:1fr}.ht-next-grid strong{font-size:12px}.ht-next-grid small{font-size:10px}}


/* Hendese V13 — live market/data tools */
.ht-live-market-status{padding:10px 12px;border-radius:12px;background:#f3f7f5;color:#5a6b63;font-size:11px;font-weight:800}.ht-sparkline{width:84px;height:28px;display:block}.ht-sparkline.is-up{color:#1d8b5a}.ht-sparkline.is-down{color:#c84f55}.ht-crypto-table small{display:block;color:#829089;font-size:9px;margin-top:2px}.ht-live-dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.ht-live-card{display:grid;gap:5px;padding:15px;border:1px solid #dfe8e3;border-radius:16px;background:#fff;text-decoration:none;transition:.18s}.ht-live-card:hover{transform:translateY(-2px);border-color:#a9c8b9;box-shadow:0 10px 28px rgba(20,78,53,.08)}.ht-live-card span{font-size:10px;font-weight:900;color:#64766d}.ht-live-card b{font-size:21px;color:#173a2b}.ht-live-card small{font-size:9px;color:#7d8a84;line-height:1.6}.ht-live-skeleton{grid-column:1/-1;padding:20px;text-align:center;color:#7a8881}.ht-air-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.ht-air-grid>div{display:grid;gap:3px;padding:12px;border:1px solid #e1e9e5;border-radius:14px;background:#fbfdfc;text-align:center}.ht-air-grid span{font-size:9px;color:#718078}.ht-air-grid b{font-size:18px;color:#183b2c}.ht-air-grid small{font-size:8px;color:#87938e}.ht-air-grid .ht-air-main{background:#eaf6f0;border-color:#c9e3d6}.ht-mini-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.ht-mini-result-grid>div{padding:10px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08)}.ht-mini-result-grid span,.ht-mini-result-grid b{display:block}.ht-mini-result-grid span{font-size:9px;color:#9eada6}.ht-mini-result-grid b{font-size:12px;color:#fff;margin-top:4px}.ht-crypto-table-wrap{max-width:100%;overflow:auto}.ht-crypto-table{min-width:680px}
@media(min-width:901px){.ht-live-card span{font-size:12px}.ht-live-card b{font-size:25px}.ht-live-card small{font-size:10px}.ht-live-market-status{font-size:12px}.ht-air-grid span{font-size:10px}.ht-air-grid b{font-size:21px}.ht-air-grid small{font-size:9px}}
@media(max-width:700px){.ht-live-dashboard{grid-template-columns:1fr}.ht-air-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-air-grid .ht-air-main{grid-column:1/-1}.ht-mini-result-grid{grid-template-columns:1fr}.ht-crypto-table{min-width:620px}}

/* Hendese V14 — dashboard بازار ایران / جهان / ایران امروز */
.ht-wrap[data-tool="live_dashboard"] .ht-layout,.ht-wrap[data-tool="metals_live"] .ht-layout{grid-template-columns:minmax(0,1fr)}
.ht-tgju-widget,.ht-tgju-widget tgju{color:#173c2d!important;background:#fff!important;--title-color:#173c2d;--text-color:#173c2d;--tgju-title-color:#173c2d;--tgju-text-color:#173c2d}
.ht-tgju-widget [class*="title"],.ht-tgju-widget [class*="name"],.ht-tgju-widget [class*="symbol"],.ht-tgju-widget a{color:#173c2d!important;text-shadow:none!important}
.ht-domain-audit-note,.ht-domain-warning{padding:12px 14px;border-radius:12px;background:#fff8e8;color:#72561a;font-size:12px;line-height:1.9}.ht-domain-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.ht-domain-metrics>div{padding:13px;border:1px solid #dce9e2;border-radius:13px;background:#f7fbf9}.ht-domain-metrics small{display:block;color:#66776f}.ht-domain-metrics b{display:block;margin-top:5px;font-size:22px;color:#173c2d}.ht-domain-tech{display:grid;gap:8px}.ht-domain-tech p{display:flex;justify-content:space-between;gap:16px;margin:0;padding:10px 0;border-bottom:1px solid #e7efeb}.ht-domain-tech p:last-child{border-bottom:0}.ht-domain-tech span{color:#5f7068}.ht-domain-tech b{text-align:left;color:#173c2d}.ht-domain-tech .is-up{color:#087552}.ht-domain-tech .is-down{color:#b23a32}@media(max-width:620px){.ht-domain-metrics{grid-template-columns:1fr}.ht-domain-tech p{align-items:flex-start;flex-direction:column;gap:4px}.ht-domain-tech b{text-align:right}}
.ht-domain-metrics em,.ht-domain-metrics span{display:block;margin-top:4px;font-size:12px;font-style:normal;color:#52645c}.ht-growth-chart{margin:14px 0;padding:14px;border:1px solid #dce9e2;border-radius:14px;background:#fff}.ht-growth-chart>b{display:block;margin-bottom:8px}.ht-growth-chart svg{display:block;width:100%;height:auto;overflow:visible}.ht-growth-chart polyline{fill:none;stroke:#d69b5c;stroke-width:1.5}.ht-growth-chart polyline.median{stroke:#19865f;stroke-width:2.5}.ht-growth-chart circle{fill:#c42f45;stroke:#fff;stroke-width:2}.ht-growth-chart small{display:block;margin-top:6px;color:#607069}
.ht-live-v14{display:grid!important;gap:18px!important}
.ht-live-block{display:grid;gap:14px;padding:20px;border:1px solid #dfe9e4;border-radius:22px;background:linear-gradient(145deg,#fff,#f8fbf9);min-width:0;overflow:hidden}
.ht-live-ticker-block{padding:14px 16px;background:#0d241b;border-color:#173b2d;color:#fff}
.ht-live-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap}.ht-live-heading h2{margin:0;font-size:21px;color:#153b2b}.ht-live-heading p{margin:0;color:#718178;font-size:12px}.ht-live-ticker-block .ht-live-heading span{font-size:12px;font-weight:900;color:#dce8e2}.ht-live-ticker-block .ht-live-heading small{font-size:10px;color:#9fb0a8}
.ht-tgju-widget{max-width:100%;overflow:hidden;border-radius:16px}.ht-tgju-widget tgju{display:block;max-width:100%}.ht-live-config{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 14px;padding:16px;border:1px dashed #cbdad2;border-radius:16px;background:#fff}.ht-live-config b{font-size:13px;color:#254a39}.ht-live-config span{font-size:11px;color:#74827b;line-height:1.8}.ht-live-config a{grid-column:2;grid-row:1/3;padding:9px 12px;border-radius:10px;background:#edf7f2;color:#087552;font-size:11px;font-weight:900;text-decoration:none}
.ht-live-today-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.ht-live-today-grid .ht-live-card{min-height:128px}.ht-live-links{display:flex;flex-wrap:wrap;gap:8px}.ht-live-links a{display:inline-flex;align-items:center;min-height:36px;padding:0 11px;border:1px solid #dce7e1;border-radius:10px;background:#fff;color:#276148;font-size:11px;font-weight:850;text-decoration:none}.ht-live-links a:hover{border-color:#9ec5b2;background:#f1f8f4}
.ht-weather-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:10px}.ht-weather-grid>div{display:grid;gap:4px;padding:14px;border:1px solid #e0e9e4;border-radius:15px;background:#fbfdfc;text-align:center}.ht-weather-grid span{font-size:10px;color:#73817a}.ht-weather-grid b{font-size:20px;color:#163c2c}.ht-weather-grid small{font-size:9px;color:#89958f}.ht-weather-grid .ht-weather-main{grid-column:span 2;background:linear-gradient(135deg,#edf9f4,#f7fbff);border-color:#cfe4d9}.ht-weather-grid .ht-weather-main b{font-size:18px}
@media(min-width:901px){.ht-live-heading h2{font-size:24px}.ht-live-heading p{font-size:13px}.ht-live-today-grid .ht-live-card span{font-size:12px}.ht-live-today-grid .ht-live-card b{font-size:24px}.ht-live-today-grid .ht-live-card small{font-size:10px}}
@media(max-width:1000px){.ht-live-today-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-live-today-grid .ht-live-card:last-child{grid-column:1/-1}}
@media(max-width:620px){.ht-live-block{padding:15px;border-radius:18px}.ht-live-ticker-block{padding:12px}.ht-live-config{grid-template-columns:1fr}.ht-live-config a{grid-column:1;grid-row:auto;justify-self:start}.ht-live-today-grid{grid-template-columns:1fr}.ht-live-today-grid .ht-live-card:last-child{grid-column:auto}.ht-weather-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-weather-grid .ht-weather-main{grid-column:1/-1}.ht-tgju-widget{overflow-x:auto;-webkit-overflow-scrolling:touch}}

/* V18 — PDF + conversion landing pages */
.ht-file{border:1px dashed #b8cfc6;background:#f8fbfa;border-radius:14px;padding:14px}.ht-file input[type=file]{width:100%;font:inherit;color:#31483f}.ht-download-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:12px;background:#0d6b4f;color:#fff!important;text-decoration:none!important;font-weight:800;margin:6px 6px 0 0}.ht-pdf-downloads{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.ht-conversion-examples{margin-top:22px;padding:20px;border:1px solid #e0eae6;border-radius:18px;background:#fbfdfc}.ht-conversion-examples h2{font-size:20px;margin:0 0 14px}.ht-conversion-examples p{margin:14px 0 0;color:#566b62;line-height:1.9}.ht-conversion-examples table{width:100%;border-collapse:collapse}.ht-conversion-examples th,.ht-conversion-examples td{padding:10px 12px;border-bottom:1px solid #e7eeeb;text-align:right}.ht-conversion-examples th{color:#315146;font-size:13px}@media(max-width:700px){.ht-conversion-examples{padding:15px}.ht-pdf-downloads{display:grid}.ht-download-link{width:100%;margin:0}}

/* V19 gold calculators */
.ht-gold-breakdown{display:grid;gap:0;border:1px solid rgba(255,255,255,.08);border-radius:12px;overflow:hidden;margin-top:12px}.ht-gold-breakdown p{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0!important;padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.06)}.ht-gold-breakdown p:last-child{border-bottom:0}.ht-gold-breakdown p strong{display:block;width:100%;font-size:1.08em;color:#fff}.ht-gold-breakdown b{white-space:nowrap}@media(max-width:620px){.ht-gold-breakdown p{align-items:flex-start;flex-direction:column;gap:2px}.ht-gold-breakdown b{white-space:normal}}
/* Extra Pack v12 */
.ht-extra-widget{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px;border:1px solid var(--ht-line,#e5e7eb);border-radius:14px;background:#fff}.ht-extra-widget strong{font-size:1.6rem;min-width:90px;text-align:center}.ht-extra-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.ht-extra-palette button{min-height:78px;border:0;border-radius:14px;display:flex;align-items:flex-end;justify-content:center;padding:8px;cursor:pointer}.ht-extra-palette span{background:rgba(255,255,255,.88);padding:4px 7px;border-radius:8px;font:700 12px monospace;direction:ltr}.ht-extra-canvas{max-width:100%;height:auto;border-radius:14px;margin-top:12px}@media(max-width:640px){.ht-extra-palette{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v12.0.1 — global result readability */
.ht-result-label{font-size:14px!important;line-height:1.8;font-weight:800}
.ht-result-unit{font-size:16px!important;line-height:1.9}
.ht-result-note{font-size:15px!important;line-height:2.05!important;color:#c4d0ca!important}
.ht-result-helper{font-size:13px!important;line-height:2!important;color:#aebdb5!important;margin-top:14px!important}
.ht-result-actions .ht-copy,.ht-result-actions .ht-share{font-size:14px!important;font-weight:800;min-height:46px!important;line-height:1.5}
.ht-result-cards small{font-size:12px!important;line-height:1.8}
.ht-result-cards b{font-size:15px!important;line-height:1.9}
.ht-result-details p{font-size:14px!important;line-height:2}
.ht-mini-result-grid span{font-size:11px!important;line-height:1.7}
.ht-mini-result-grid b{font-size:14px!important;line-height:1.8}
@media(max-width:620px){
 .ht-result-label{font-size:13px!important}
 .ht-result-unit{font-size:15px!important}
 .ht-result-note{font-size:14px!important;line-height:2!important}
 .ht-result-helper{font-size:13px!important;line-height:1.95!important}
 .ht-result-actions .ht-copy,.ht-result-actions .ht-share{font-size:14px!important;min-height:48px!important}
 .ht-result-cards small{font-size:11px!important}
 .ht-result-cards b{font-size:14px!important}
 .ht-result-details p{font-size:13px!important}
}


/* v12.2.0 — local interactive tools */
.ht-rich-text{display:grid;gap:10px}.ht-rich-text .is-arabic{font-size:20px;line-height:2.2;color:#173c2d}.ht-rich-text p{margin:0;font-size:15px;line-height:2.05}.ht-rich-text h3{margin:0;font-size:20px}
.ht-barcode-wrap svg{max-width:100%;height:auto;background:#fff;border-radius:12px;padding:8px}
.ht-extra-code textarea{width:100%;min-height:180px;padding:14px;border:1px solid #d7e4dd;border-radius:14px;background:#fcfefd;color:#173c2d;font:13px/1.9 monospace;direction:ltr;text-align:left}
.ht-extra-files,.ht-extra-list{display:grid;gap:10px;margin-top:12px}.ht-local-empty{margin:0;padding:14px;border:1px dashed #cbdad2;border-radius:14px;background:#fbfdfc;color:#607069}.ht-local-table{overflow:auto;max-width:100%}.ht-local-table table{width:100%;border-collapse:collapse;background:#fff}.ht-local-table th,.ht-local-table td{padding:10px 12px;border-bottom:1px solid #e8efeb;text-align:right;font-size:13px}.ht-local-table th{font-weight:800;color:#234838}
.ht-extra-color-test canvas{max-width:100%;height:auto;border:1px solid #dce8e2;border-radius:16px;background:#fff}
.ht-game-board{display:grid;gap:8px;margin-top:10px}.ht-game-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}.ht-game-meta small,.ht-game-meta b{font-size:13px;color:#234838}
.ht-game-tic{grid-template-columns:repeat(3,88px)}.ht-game-tic button{width:88px;height:88px;border:1px solid #dbe7e1;border-radius:14px;background:#fff;font-size:32px;font-weight:900;color:#163c2c}
.ht-reaction-box{min-height:120px;display:grid;place-items:center;border:1px solid #dbe7e1;border-radius:18px;background:#fff;font-size:18px;font-weight:800;color:#163c2c;padding:20px}.ht-reaction-box.is-ready{background:#e9f9ef;color:#0a6b49}
.ht-game-memory{grid-template-columns:repeat(4,72px)}.ht-game-memory button{width:72px;height:72px;border:1px solid #dbe7e1;border-radius:12px;background:#fff;font-size:26px;font-weight:900;color:#173c2d}.ht-game-memory button.is-done{background:#eaf6f0}
.ht-word-mask{font-size:30px;font-weight:900;letter-spacing:3px;color:#173c2d;margin:8px 0}.ht-word-letters{display:flex;flex-wrap:wrap;gap:6px}.ht-word-letters button{min-width:42px;min-height:42px;border:1px solid #dbe7e1;border-radius:10px;background:#fff;font-weight:800;color:#163c2c}
.ht-game-maze{grid-template-columns:repeat(5,44px);gap:4px}.ht-game-maze span{width:44px;height:44px;border-radius:8px;background:#f1f5f3;border:1px solid #dbe7e1}.ht-game-maze span.is-wall{background:#173c2d}.ht-game-maze span.is-player{background:#f0bf4f}.ht-game-maze span.is-goal{box-shadow:inset 0 0 0 4px #16a36b}
@media(max-width:640px){.ht-game-tic{grid-template-columns:repeat(3,1fr)}.ht-game-tic button{width:auto;height:72px}.ht-game-memory{grid-template-columns:repeat(4,1fr)}.ht-game-memory button{width:auto;height:64px}.ht-game-maze{grid-template-columns:repeat(5,1fr)}.ht-game-maze span{width:auto;height:40px}}


/* v12.3.0 — remaining local tools */
.ht-extra-breath{display:grid;justify-items:center;gap:12px;padding:18px;border:1px solid #dce8e2;border-radius:18px;background:#fbfdfc}.ht-extra-breath [data-breath-circle]{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:#eaf6f0;color:#176747;font-size:18px;font-weight:900;transition:.4s}.ht-extra-breath [data-phase="دم"]{transform:scale(1.08);background:#e6f7ee}.ht-extra-breath [data-phase="بازدم"]{transform:scale(.92);background:#f1f5f3}.ht-extra-breath [data-phase="نگه‌دار"]{background:#fff6dd}.ht-extra-breath .ht-button,.ht-extra-breath .ht-reset{min-width:130px}.ht-extra-list .ht-reset{justify-self:start}


/* v12.3.2 — safe wide layout: widen the theme parent, never offset the tool itself */
.ht-wrap{width:100%;max-width:100%;box-sizing:border-box}
@media(min-width:1001px){
  /* Modern browsers: widen only a narrow content wrapper that actually contains a Hendese tool. */
  .narrow:has(> .ht-wrap),
  .narrow:has(.ht-wrap),
  .page-content.narrow:has(.ht-wrap),
  .entry-content.narrow:has(.ht-wrap){
    width:min(1240px,calc(100% - 48px))!important;
    max-width:1240px!important;
    margin-inline:auto!important;
  }
  /* Keep tool geometry normal. No translate/negative margin breakout. */
  .narrow .ht-wrap,
  .page-content .ht-wrap,
  .entry-content .ht-wrap{
    width:100%!important;
    max-width:100%!important;
    margin-inline:0!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
  }
  .ht-layout{grid-template-columns:minmax(0,1.55fr) minmax(290px,.65fr);gap:22px}
}
@media(max-width:1000px){
  .ht-wrap{width:100%!important;max-width:100%!important;left:auto!important;right:auto!important;transform:none!important}
}

/* v13.0.0 calculator expansion */
.ht-wrap[data-tool="matrix_2x2"] .ht-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.ht-wrap[data-tool="irr_calc"] textarea,.ht-wrap[data-tool="std_deviation"] textarea{min-height:160px}@media(max-width:700px){.ht-wrap[data-tool="matrix_2x2"] .ht-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v13.1.0 physics/chemistry/statistics pack */
.ht-wrap[data-category="physics"] .ht-result,.ht-wrap[data-category="chemistry"] .ht-result,.ht-wrap[data-category="statistics"] .ht-result,.ht-wrap[data-category="engineering"] .ht-result{min-height:220px}


/* v14.0.1 — global high-contrast result panel */
.ht-result{
  color:#f5faf7!important;
}
.ht-result .ht-result-label{
  color:#d7e2dc!important;
}
.ht-result .ht-result-unit{
  color:#f4f8f6!important;
}
.ht-result .ht-result-note{
  color:#d7e3dd!important;
}
.ht-result .ht-result-helper{
  color:#b8c8c0!important;
}
.ht-result .ht-result-note p,
.ht-result .ht-result-note li,
.ht-result .ht-result-note span,
.ht-result .ht-result-note div,
.ht-result .ht-result-note h2,
.ht-result .ht-result-note h3,
.ht-result .ht-result-note h4,
.ht-result .ht-result-note h5,
.ht-result .ht-result-note h6,
.ht-result .ht-result-note small,
.ht-result .ht-result-note em,
.ht-result .ht-result-note i{
  color:#dce8e2!important;
}
.ht-result .ht-result-note b,
.ht-result .ht-result-note strong{
  color:#ffffff!important;
}
.ht-result .ht-result-note a{
  color:#e6f4b3!important;
  text-decoration-color:rgba(230,244,179,.55)!important;
}
.ht-result .ht-rich-text,
.ht-result .ht-rich-text p,
.ht-result .ht-rich-text li,
.ht-result .ht-rich-text h2,
.ht-result .ht-rich-text h3,
.ht-result .ht-rich-text h4,
.ht-result .ht-rich-text span{
  color:#eef6f1!important;
}
.ht-result .ht-rich-text .is-arabic{
  color:#ffffff!important;
  text-shadow:0 1px 0 rgba(0,0,0,.08);
}
.ht-result .ht-rich-text b,
.ht-result .ht-rich-text strong{
  color:#ffffff!important;
}
.ht-result .ht-result-cards small,
.ht-result .ht-mini-result-grid span{
  color:#b9c9c1!important;
}
.ht-result .ht-result-cards b,
.ht-result .ht-mini-result-grid b,
.ht-result .ht-result-details b,
.ht-result .ht-result-details strong{
  color:#ffffff!important;
}
.ht-result .ht-result-details p{
  color:#d7e3dd!important;
}
.ht-result .ht-copy,
.ht-result .ht-share,
.ht-result-actions .ht-copy,
.ht-result-actions .ht-share{
  color:#f5faf7!important;
  border-color:rgba(255,255,255,.28)!important;
  background:rgba(255,255,255,.055)!important;
}
.ht-result .ht-copy:hover,
.ht-result .ht-share:hover,
.ht-result-actions .ht-copy:hover,
.ht-result-actions .ht-share:hover{
  color:#ffffff!important;
  background:rgba(255,255,255,.11)!important;
  border-color:rgba(255,255,255,.42)!important;
}
@media(max-width:620px){
  .ht-result .ht-rich-text .is-arabic{font-size:19px!important;line-height:2.15!important}
}

/* v14.1.0 — religious reading mode */
.ht-wrap[data-tool="quran_reader"] .ht-result,
.ht-wrap[data-tool="doa_nadeali_text"] .ht-result,
.ht-wrap[data-tool="doa_daily_text"] .ht-result,
.ht-wrap[data-tool="ramadan_dua_text"] .ht-result,
.ht-wrap[data-tool="ashura_text"] .ht-result,
.ht-wrap[data-tool="doa_nodbe_text"] .ht-result,
.ht-wrap[data-tool="doa_ahd_text"] .ht-result,
.ht-wrap[data-tool="hadith_kisa_text"] .ht-result{
  background:#fff!important;color:#17352a!important;border:1px solid #dce8e2!important;
  border-radius:22px!important;padding:0!important;overflow:hidden;box-shadow:0 12px 35px rgba(20,61,45,.08)!important;
}
.ht-wrap[data-tool="quran_reader"] .ht-result-head,
.ht-wrap[data-tool="doa_nadeali_text"] .ht-result-head,
.ht-wrap[data-tool="doa_daily_text"] .ht-result-head,
.ht-wrap[data-tool="ramadan_dua_text"] .ht-result-head,
.ht-wrap[data-tool="ashura_text"] .ht-result-head,
.ht-wrap[data-tool="doa_nodbe_text"] .ht-result-head,
.ht-wrap[data-tool="doa_ahd_text"] .ht-result-head,
.ht-wrap[data-tool="hadith_kisa_text"] .ht-result-head{background:#f1f7f4!important;padding:18px 22px!important;border-bottom:1px solid #dce8e2}
.ht-wrap[data-tool="quran_reader"] .ht-result-value,
.ht-wrap[data-tool="doa_nadeali_text"] .ht-result-value,
.ht-wrap[data-tool="doa_daily_text"] .ht-result-value,
.ht-wrap[data-tool="ramadan_dua_text"] .ht-result-value,
.ht-wrap[data-tool="ashura_text"] .ht-result-value,
.ht-wrap[data-tool="doa_nodbe_text"] .ht-result-value,
.ht-wrap[data-tool="doa_ahd_text"] .ht-result-value,
.ht-wrap[data-tool="hadith_kisa_text"] .ht-result-value{color:#123d2c!important;font-size:22px!important}
.ht-wrap[data-tool="quran_reader"] .ht-result-unit,
.ht-wrap[data-tool="doa_nadeali_text"] .ht-result-unit,
.ht-wrap[data-tool="doa_daily_text"] .ht-result-unit,
.ht-wrap[data-tool="ramadan_dua_text"] .ht-result-unit,
.ht-wrap[data-tool="ashura_text"] .ht-result-unit,
.ht-wrap[data-tool="doa_nodbe_text"] .ht-result-unit,
.ht-wrap[data-tool="doa_ahd_text"] .ht-result-unit,
.ht-wrap[data-tool="hadith_kisa_text"] .ht-result-unit{color:#527063!important}
.ht-wrap[data-tool="quran_reader"] .ht-result-note,
.ht-wrap[data-tool="doa_nadeali_text"] .ht-result-note,
.ht-wrap[data-tool="doa_daily_text"] .ht-result-note,
.ht-wrap[data-tool="ramadan_dua_text"] .ht-result-note,
.ht-wrap[data-tool="ashura_text"] .ht-result-note,
.ht-wrap[data-tool="doa_nodbe_text"] .ht-result-note,
.ht-wrap[data-tool="doa_ahd_text"] .ht-result-note,
.ht-wrap[data-tool="hadith_kisa_text"] .ht-result-note{color:#263c33!important;padding:24px 28px!important;font-size:16px!important;line-height:2.15!important;max-height:none!important;overflow:visible!important}
.ht-wrap .ht-religious-reader{max-width:900px;margin:auto}
.ht-wrap .ht-religious-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 22px}
.ht-wrap .ht-religious-toolbar select{min-height:46px;border:1px solid #cfded6;border-radius:12px;background:#fff;padding:0 12px;font:inherit;color:#17352a}
.ht-wrap .ht-religious-source{font-size:13px!important;color:#6a7f75!important;margin-top:24px;padding-top:16px;border-top:1px dashed #d8e3de}
.ht-wrap .ht-quran-ayah{padding:20px 0;border-bottom:1px solid #edf2ef}
.ht-wrap .ht-quran-ayah:last-child{border-bottom:0}
.ht-wrap .ht-quran-ar{font-size:24px!important;line-height:2.25!important;text-align:right;direction:rtl;color:#102d22!important;font-weight:600}
.ht-wrap .ht-quran-fa{font-size:16px!important;line-height:2!important;color:#435a50!important;margin-top:10px}
.ht-wrap .ht-ayah-no{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;border-radius:50%;background:#edf6f1;color:#246044;font-size:12px;margin-left:8px}
.ht-wrap .ht-rich-text{max-width:900px;margin:auto}
.ht-wrap .ht-rich-text .is-arabic{font-size:24px!important;line-height:2.35!important;color:#102d22!important;text-align:right!important;direction:rtl!important;font-weight:600!important}
.ht-wrap .ht-rich-text p:not(.is-arabic){color:#435a50!important;font-size:16px!important;line-height:2.05!important}
.ht-wrap .ht-religious-launch{background:#f6faf8;border:1px solid #dce8e2;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.ht-wrap .ht-religious-launch b{color:#17352a}.ht-wrap .ht-religious-launch span{color:#63786e;font-size:13px}
@media(max-width:620px){.ht-wrap .ht-quran-ar,.ht-wrap .ht-rich-text .is-arabic{font-size:21px!important;line-height:2.2!important}.ht-wrap .ht-result-note{padding:18px!important}.ht-wrap .ht-religious-toolbar select{width:100%}}

/* v14.2.0 — complete religious reading experience */
.ht-wrap[data-tool="quran_reader"] .ht-result,
.ht-wrap[data-tool="doa_nadeali_text"] .ht-result,
.ht-wrap[data-tool="ramadan_dua_text"] .ht-result,
.ht-wrap[data-tool="ashura_text"] .ht-result,
.ht-wrap[data-tool="doa_nodbe_text"] .ht-result,
.ht-wrap[data-tool="doa_ahd_text"] .ht-result,
.ht-wrap[data-tool="hadith_kisa_text"] .ht-result{
  max-width:1040px!important;margin:26px auto 0!important;background:#fff!important;color:#17352a!important;
  border:1px solid #dce8e2!important;border-radius:22px!important;box-shadow:0 12px 34px rgba(23,53,42,.08)!important;
  overflow:visible!important;padding:0!important;
}
.ht-wrap[data-tool="quran_reader"] .ht-result-head,
.ht-wrap[data-tool="doa_nadeali_text"] .ht-result-head,
.ht-wrap[data-tool="ramadan_dua_text"] .ht-result-head,
.ht-wrap[data-tool="ashura_text"] .ht-result-head,
.ht-wrap[data-tool="doa_nodbe_text"] .ht-result-head,
.ht-wrap[data-tool="doa_ahd_text"] .ht-result-head,
.ht-wrap[data-tool="hadith_kisa_text"] .ht-result-head{padding:22px 28px 0!important}
.ht-wrap .ht-religious-reader{--reader-scale:1;max-width:980px!important;margin:0 auto!important;padding:10px 8px 30px!important;color:#263c33!important}
.ht-wrap .ht-prayer-reader{font-size:calc(16px * var(--reader-scale))}
.ht-wrap .ht-reading-toolbar{position:sticky;top:10px;z-index:5;display:flex;gap:8px;flex-wrap:wrap;padding:10px;margin:0 0 22px;background:rgba(247,251,249,.96);backdrop-filter:blur(8px);border:1px solid #dce8e2;border-radius:14px}
.ht-wrap .ht-reading-toolbar button{border:1px solid #cfe0d7;background:#fff;color:#1f5c43;border-radius:10px;min-height:40px;padding:7px 12px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.ht-wrap .ht-reading-toolbar button:hover{background:#edf7f2}
.ht-wrap .ht-reading-head{text-align:center;padding:8px 8px 22px;border-bottom:1px solid #e5eee9;margin-bottom:6px}
.ht-wrap .ht-reading-head h2{color:#17352a!important;margin:0 0 7px!important;font-size:24px!important;line-height:1.8!important}
.ht-wrap .ht-reading-head p{margin:0!important;color:#6a7f75!important;font-size:13px!important}
.ht-wrap .ht-prayer-content{max-width:900px;margin:0 auto}
.ht-wrap .ht-prayer-item{padding:15px 8px;border-bottom:1px solid #edf2ef;white-space:normal}
.ht-wrap .ht-prayer-item.is-arabic{direction:rtl;text-align:right;color:#102d22!important;font-size:calc(25px * var(--reader-scale))!important;line-height:2.35!important;font-weight:600!important;font-family:Tahoma,"Noto Naskh Arabic","Traditional Arabic",serif}
.ht-wrap .ht-prayer-item.is-translation{direction:rtl;text-align:right;color:#4b6258!important;font-size:calc(16px * var(--reader-scale))!important;line-height:2.15!important;background:#fbfdfc;border-radius:10px;padding:13px 12px}
.ht-wrap .ht-prayer-reader.hide-translation .ht-prayer-item.is-translation{display:none!important}
.ht-wrap .ht-religious-source{max-width:900px;margin:26px auto 0!important}
@media(max-width:700px){
 .ht-wrap[data-tool="quran_reader"] .ht-result,
 .ht-wrap[data-tool="doa_nadeali_text"] .ht-result,
 .ht-wrap[data-tool="ramadan_dua_text"] .ht-result,
 .ht-wrap[data-tool="ashura_text"] .ht-result,
 .ht-wrap[data-tool="doa_nodbe_text"] .ht-result,
 .ht-wrap[data-tool="doa_ahd_text"] .ht-result,
 .ht-wrap[data-tool="hadith_kisa_text"] .ht-result{border-radius:16px!important;margin-top:18px!important}
 .ht-wrap .ht-religious-reader{padding:6px 0 22px!important}
 .ht-wrap .ht-reading-toolbar{top:6px;margin-left:-4px;margin-right:-4px}
 .ht-wrap .ht-reading-toolbar button{flex:1 1 auto;font-size:12px}
 .ht-wrap .ht-prayer-item.is-arabic{font-size:calc(22px * var(--reader-scale))!important;line-height:2.25!important;padding:14px 4px}
 .ht-wrap .ht-prayer-item.is-translation{font-size:calc(15px * var(--reader-scale))!important;line-height:2.05!important}
}
/* v14.3.0 — local dua library */
.ht-dua-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ht-dua-shortcuts button{border:1px solid #d8e5df;background:#fff;color:#164a36;border-radius:999px;padding:8px 13px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.ht-dua-shortcuts button:hover{background:#eef7f3;border-color:#bcd7cb}
.ht-dua-library-reader{max-width:1040px!important}
.ht-dua-library-head{background:#f4f9f6;border:1px solid #dfeae5;border-radius:16px;padding:18px 20px;margin-bottom:18px}
.ht-dua-library-head h2{margin:0 0 6px!important;color:#163e2f!important;font-size:22px!important}
.ht-dua-library-head p{margin:0!important;color:#60766b!important}
.ht-dua-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:28px}
.ht-dua-result-card{appearance:none;text-align:right;border:1px solid #dfe8e4;background:#fff;border-radius:14px;padding:14px 15px;cursor:pointer;display:flex;flex-direction:column;gap:5px;min-height:72px;box-shadow:0 4px 16px rgba(18,61,44,.04)}
.ht-dua-result-card:hover{border-color:#99c5b2;background:#f8fcfa}
.ht-dua-result-card b{color:#153f30!important;font-size:15px!important;line-height:1.8}
.ht-dua-result-card span{color:#71857b!important;font-size:12px!important;line-height:1.7}
.ht-dua-selected{border-top:2px solid #e8f0ec;padding-top:22px;scroll-margin-top:90px}
@media(max-width:680px){.ht-dua-results{grid-template-columns:1fr}.ht-dua-shortcuts{gap:6px}.ht-dua-shortcuts button{font-size:12px;padding:7px 10px}.ht-dua-library-head h2{font-size:19px!important}}

/* v14.4.0 — final result contrast system + religious reading surface */
/* Normal calculators keep the dark jade result card with guaranteed light text. */
.ht-wrap:not([data-category="religious"]) .ht-result{
  background:linear-gradient(145deg,#16231e 0%,#1d352b 100%)!important;
  color:#f7fbf9!important;
  border-color:rgba(255,255,255,.09)!important;
}
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-kicker,
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-label,
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-unit,
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-note,
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-note p,
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-note li,
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-note span,
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-note div,
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-helper{
  color:#e7f0eb!important;
}
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-value,
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-note b,
.ht-wrap:not([data-category="religious"]) .ht-result .ht-result-note strong,
.ht-wrap:not([data-category="religious"]) .ht-result h2,
.ht-wrap:not([data-category="religious"]) .ht-result h3,
.ht-wrap:not([data-category="religious"]) .ht-result h4{
  color:#fff!important;
}
.ht-wrap:not([data-category="religious"]) .ht-result a{color:#e5f5aa!important}

/* Every religious tool uses a paper-like reading result instead of the calculator strip. */
.ht-wrap[data-category="religious"] .ht-result{
  position:static!important;
  width:100%!important;
  max-width:1060px!important;
  margin:28px auto 0!important;
  padding:0!important;
  overflow:visible!important;
  background:#ffffff!important;
  color:#18372b!important;
  border:1px solid #d9e6df!important;
  border-radius:22px!important;
  box-shadow:0 14px 40px rgba(17,55,40,.08)!important;
  text-align:right!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-result-kicker,
.ht-wrap[data-category="religious"] .ht-result .ht-result-label{
  display:none!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-result-value{
  display:block!important;
  padding:25px 30px 4px!important;
  margin:0!important;
  background:#f4f9f6!important;
  color:#153d2e!important;
  font-size:24px!important;
  line-height:1.8!important;
  font-weight:900!important;
  border-radius:22px 22px 0 0!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-result-unit{
  display:block!important;
  padding:0 30px 20px!important;
  margin:0!important;
  background:#f4f9f6!important;
  color:#62786d!important;
  font-size:14px!important;
  line-height:1.9!important;
  border-bottom:1px solid #e1ebe6!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-result-note{
  display:block!important;
  margin:0!important;
  padding:28px 32px!important;
  max-height:none!important;
  overflow:visible!important;
  background:#fff!important;
  color:#354f43!important;
  font-size:16px!important;
  line-height:2.1!important;
  border:0!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-result-note p,
.ht-wrap[data-category="religious"] .ht-result .ht-result-note li,
.ht-wrap[data-category="religious"] .ht-result .ht-result-note span,
.ht-wrap[data-category="religious"] .ht-result .ht-result-note div{
  color:#435b50!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-result-note b,
.ht-wrap[data-category="religious"] .ht-result .ht-result-note strong,
.ht-wrap[data-category="religious"] .ht-result .ht-result-note h2,
.ht-wrap[data-category="religious"] .ht-result .ht-result-note h3,
.ht-wrap[data-category="religious"] .ht-result .ht-result-note h4{
  color:#173d2e!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-rich-text,
.ht-wrap[data-category="religious"] .ht-result .ht-rich-text p,
.ht-wrap[data-category="religious"] .ht-result .ht-rich-text span,
.ht-wrap[data-category="religious"] .ht-result .ht-rich-text li{
  color:#435b50!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-rich-text .is-arabic,
.ht-wrap[data-category="religious"] .ht-result .ht-prayer-item.is-arabic,
.ht-wrap[data-category="religious"] .ht-result .ht-quran-ar{
  color:#102f23!important;
  text-shadow:none!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-prayer-item.is-translation,
.ht-wrap[data-category="religious"] .ht-result .ht-quran-fa{
  color:#4b6358!important;
  background:#f8fbf9!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-result-helper{
  display:none!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-result-actions{
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  padding:0 30px 28px!important;
  margin:0!important;
  background:#fff!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-copy,
.ht-wrap[data-category="religious"] .ht-result .ht-share,
.ht-wrap[data-category="religious"] .ht-result-actions .ht-copy,
.ht-wrap[data-category="religious"] .ht-result-actions .ht-share{
  color:#1d5d42!important;
  background:#f1f7f4!important;
  border:1px solid #cbded5!important;
  min-height:44px!important;
}
.ht-wrap[data-category="religious"] .ht-result .ht-copy:hover,
.ht-wrap[data-category="religious"] .ht-result .ht-share:hover{
  color:#123e2d!important;
  background:#e7f2ec!important;
  border-color:#a9cabb!important;
}
.ht-wrap[data-category="religious"] .ht-reading-toolbar{
  background:rgba(247,251,249,.97)!important;
  border-color:#d6e5dd!important;
}
.ht-wrap[data-category="religious"] .ht-reading-toolbar button{
  color:#1d5a40!important;
  background:#fff!important;
  border-color:#c9ddd3!important;
}
.ht-wrap[data-category="religious"] .ht-dua-result-card{
  background:#fff!important;
  color:#173d2e!important;
}
.ht-wrap[data-category="religious"] .ht-dua-result-card b{color:#173d2e!important}
.ht-wrap[data-category="religious"] .ht-dua-result-card span{color:#6a7e74!important}
@media(max-width:700px){
  .ht-wrap[data-category="religious"] .ht-result{border-radius:16px!important;margin-top:18px!important}
  .ht-wrap[data-category="religious"] .ht-result .ht-result-value{padding:20px 18px 3px!important;font-size:21px!important;border-radius:16px 16px 0 0!important}
  .ht-wrap[data-category="religious"] .ht-result .ht-result-unit{padding:0 18px 16px!important}
  .ht-wrap[data-category="religious"] .ht-result .ht-result-note{padding:20px 18px!important;font-size:15px!important;line-height:2!important}
  .ht-wrap[data-category="religious"] .ht-result .ht-result-actions{padding:0 18px 20px!important}
}

/* v14.4.1 — religious reader final contrast */
.ht-wrap[data-category="religious"] .ht-religious-reader,.ht-wrap[data-category="religious"] .ht-prayer-reader{background:#fff!important;color:#17372b!important}
.ht-wrap[data-category="religious"] .ht-prayer-content{background:#fff!important;border-radius:16px!important}
.ht-wrap[data-category="religious"] .ht-prayer-item.is-arabic{background:#fff!important;color:#102f23!important;font-size:clamp(22px,2.1vw,30px)!important;line-height:2.2!important;padding:18px 8px!important;text-align:right!important}
.ht-wrap[data-category="religious"] .ht-prayer-item.is-translation{background:#f6faf8!important;color:#334d41!important;border:1px solid #e2ece7!important;border-radius:14px!important;padding:18px 20px!important;margin:8px 0 24px!important;line-height:2.05!important}
.ht-wrap[data-category="religious"] .ht-reading-head{background:#f3f8f5!important;border:1px solid #dce9e2!important;border-radius:16px!important;padding:18px 20px!important;margin-bottom:18px!important}
.ht-wrap[data-category="religious"] .ht-reading-head h2{color:#123e2d!important;margin:0 0 6px!important}.ht-wrap[data-category="religious"] .ht-reading-head p,.ht-wrap[data-category="religious"] .ht-religious-source{color:#667b70!important}
@media(max-width:680px){.ht-wrap[data-category="religious"] .ht-prayer-item.is-arabic{font-size:22px!important;line-height:2.25!important;padding:14px 2px!important}.ht-wrap[data-category="religious"] .ht-prayer-item.is-translation{font-size:15px!important;padding:15px 14px!important}}


/* v14.5.0 — server-rendered religious reader */
.ht-religious-page .ht-reading-card{max-width:1040px;margin:24px auto;background:#fff;color:#17352a;border:1px solid #dfe8e2;border-radius:24px;padding:clamp(20px,4vw,52px);box-shadow:0 16px 46px rgba(21,54,42,.08)}
.ht-religious-page .ht-reading-card h2{font-size:clamp(24px,3vw,36px);color:#153c2d;margin:0 0 24px;text-align:center}
.ht-religious-page .ht-reading-card h3{color:#245541;font-size:18px;margin:28px 0 14px}
.ht-religious-page .ht-reading-ar p{font-size:clamp(22px,2.4vw,30px);line-height:2.35;color:#172d25;text-align:right;margin:0 0 24px;font-family:Tahoma,"Noto Naskh Arabic",serif}
.ht-religious-page .ht-reading-fa{background:#f5f9f6;border:1px solid #e0ebe4;border-radius:18px;padding:20px 24px;margin-top:28px}
.ht-religious-page .ht-reading-fa p{font-size:17px;line-height:2.15;color:#29483d;margin:0 0 18px}
.ht-religious-page .ht-reading-toolbar{display:flex;gap:8px;flex-wrap:wrap;position:sticky;top:8px;z-index:5;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);padding:8px;border:1px solid #e0ebe4;border-radius:14px;margin-bottom:24px}
.ht-religious-page .ht-reading-toolbar button{border:1px solid #d5e2da;background:#f7faf8;color:#214b3a;border-radius:10px;padding:9px 12px;font-weight:700;cursor:pointer}
.ht-religious-page .hide-fa .ht-reading-fa{display:none}
.ht-religious-page .large-text .ht-reading-ar p{font-size:clamp(27px,3vw,36px)}
.ht-religious-page .large-text .ht-reading-fa p{font-size:19px}
@media(max-width:620px){.ht-religious-page .ht-reading-card{border-radius:18px;padding:18px 14px}.ht-religious-page .ht-reading-ar p{font-size:22px;line-height:2.2}.ht-religious-page .ht-reading-fa{padding:16px 14px}.ht-religious-page .ht-reading-fa p{font-size:16px}}

/* v14.6.0 — full-width religious reading layout */
.ht-religious-page{width:100%!important;max-width:1180px!important;margin-inline:auto!important}
.entry-content:has(.ht-religious-page),
.narrow:has(.ht-religious-page),
.site-main:has(.ht-religious-page) .narrow,
.main-content:has(.ht-religious-page),
.content-area:has(.ht-religious-page){max-width:1240px!important;width:min(1240px,calc(100vw - 32px))!important;margin-inline:auto!important}
.ht-religious-page .ht-reading-card{--reader-scale:1;max-width:1120px!important;width:100%!important;padding:clamp(22px,4vw,58px)!important}
.ht-religious-page .ht-reading-flow,.ht-religious-page .ht-quran-flow{max-width:980px;margin-inline:auto}
.ht-religious-page .ht-reading-section-title{font-size:clamp(20px,2vw,26px)!important;color:#164c38!important;background:#f2f8f4;border-right:4px solid #2a7658;border-radius:14px;padding:14px 16px;margin:34px 0 18px!important}
.ht-religious-page .ht-reading-ar{position:relative}
.ht-religious-page .ht-reading-ar p{font-size:calc(clamp(24px,2.5vw,32px) * var(--reader-scale))!important;line-height:2.35!important;color:#102d23!important;font-family:Tahoma,"Noto Naskh Arabic","Segoe UI",serif!important;letter-spacing:0!important}
.ht-religious-page .ht-reading-fa{margin:8px 0 26px!important;background:#f7faf8!important}
.ht-religious-page .ht-reading-fa p{font-size:calc(17px * var(--reader-scale))!important;line-height:2.15!important;color:#29483d!important}
.ht-religious-page .ht-reading-note{background:#fff8e8;border:1px solid #f0dfb2;border-radius:14px;padding:16px 18px;margin:18px 0;color:#5b4923;line-height:2}
.ht-religious-page .ht-repeat-badge{display:inline-flex;align-items:center;justify-content:center;background:#245c45;color:#fff;border-radius:999px;padding:6px 11px;font-size:13px;font-weight:800;margin:0 0 8px}
.ht-religious-page .ht-surah-picker{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#f4f8f6;border:1px solid #dce8e2;padding:14px 16px;border-radius:14px;margin-bottom:14px}
.ht-religious-page .ht-surah-picker label{font-weight:800;color:#214c3a}
.ht-religious-page .ht-surah-picker select{min-width:220px;min-height:44px;border:1px solid #cddbd4;border-radius:10px;background:#fff;color:#17372b;padding:0 12px;font:inherit}
.ht-religious-page .ht-quran-ayah{padding:8px 0 14px;border-bottom:1px solid #edf2ef}
.ht-religious-page .ht-ayah-no{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;border:1px solid #a8c4b6;border-radius:50%;font:700 13px/1 Tahoma,sans-serif;color:#245c45;margin-left:10px;vertical-align:middle}
@media(max-width:760px){
 .entry-content:has(.ht-religious-page),.narrow:has(.ht-religious-page),.main-content:has(.ht-religious-page),.content-area:has(.ht-religious-page){width:100%!important;max-width:none!important}
 .ht-religious-page{max-width:none!important}
 .ht-religious-page .ht-reading-card{border-radius:16px!important;padding:18px 14px!important}
 .ht-religious-page .ht-reading-flow,.ht-religious-page .ht-quran-flow{max-width:none}
 .ht-religious-page .ht-reading-ar p{font-size:calc(22px * var(--reader-scale))!important;line-height:2.25!important}
 .ht-religious-page .ht-reading-fa p{font-size:calc(16px * var(--reader-scale))!important}
 .ht-religious-page .ht-surah-picker select{width:100%;min-width:0}
}

/* v14.6.1 — EVERY religious tool uses the wide primary reading column */
.ht-wrap[data-category="religious"]{
  width:100%!important;
  max-width:1180px!important;
  margin-inline:auto!important;
}
.entry-content:has(.ht-wrap[data-category="religious"]),
.narrow:has(.ht-wrap[data-category="religious"]),
.site-main:has(.ht-wrap[data-category="religious"]) .narrow,
.main-content:has(.ht-wrap[data-category="religious"]),
.content-area:has(.ht-wrap[data-category="religious"]){
  max-width:1240px!important;
  width:min(1240px,calc(100vw - 32px))!important;
  margin-inline:auto!important;
}
/* Older interactive religious tools: no narrow left result column. */
.ht-wrap[data-category="religious"] .ht-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:22px!important;
  align-items:start!important;
  max-width:1120px!important;
  margin-inline:auto!important;
}
.ht-wrap[data-category="religious"] .ht-calculator,
.ht-wrap[data-category="religious"] .ht-result{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  grid-column:1/-1!important;
}
.ht-wrap[data-category="religious"] .ht-result{
  position:static!important;
  margin-top:0!important;
}
/* Reading-like result treatment for legacy prayers/adhkar. */
.ht-wrap[data-category="religious"] .ht-result-note{
  max-width:980px!important;
  margin-inline:auto!important;
}
.ht-wrap[data-category="religious"] .ht-result-value,
.ht-wrap[data-category="religious"] .ht-result-unit,
.ht-wrap[data-category="religious"] .ht-result-note{
  text-align:right!important;
}
.ht-wrap[data-category="religious"] .ht-content{
  max-width:1120px!important;
  margin-inline:auto!important;
}
@media(max-width:720px){
  .entry-content:has(.ht-wrap[data-category="religious"]),
  .narrow:has(.ht-wrap[data-category="religious"]),
  .main-content:has(.ht-wrap[data-category="religious"]),
  .content-area:has(.ht-wrap[data-category="religious"]){
    width:100%!important;
    max-width:100%!important;
  }
  .ht-wrap[data-category="religious"] .ht-layout{gap:16px!important}
}


/* v14.6.2 — religious library additions, source footer and Ramadan day picker */
.ht-religious-source{max-width:980px;margin:34px auto 0;padding:18px 20px;border-top:1px solid #e5e7eb;font-size:14px;line-height:1.9;color:#64748b;text-align:right}
.ht-religious-source strong{color:#334155}
.ht-ramadan-days{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;max-width:980px;margin:0 auto 22px}
.ht-ramadan-days a{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid #e2e8f0;border-radius:10px;text-decoration:none;background:#fff;color:#334155;font-weight:700}
.ht-ramadan-days a:hover,.ht-ramadan-days a.is-active{border-color:#94a3b8;background:#f1f5f9;color:#0f172a}
@media(max-width:760px){.ht-ramadan-days{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.ht-ramadan-days a{min-height:40px}.ht-religious-source{padding-inline:4px}}

/* v14.6.3 — food, catering, nazri, birthday and pastry calculators */
.ht-food-tool{max-width:1180px!important;margin-inline:auto!important}
.ht-food-grid{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(0,1.35fr);gap:24px;align-items:start;margin:24px 0}
.ht-food-controls,.ht-food-result-card{background:#fff;border:1px solid #e6e9ee;border-radius:22px;padding:22px;box-shadow:0 10px 30px rgba(25,40,65,.06)}
.ht-food-stepper{display:grid;grid-template-columns:48px minmax(90px,1fr) 48px auto;gap:9px;align-items:center;margin:18px 0}
.ht-food-stepper button{height:48px;border:1px solid #dfe4ea;border-radius:14px;background:#f7f9fb;font-size:26px;cursor:pointer}
.ht-food-stepper input{height:48px;border:1px solid #d9dee6;border-radius:14px;text-align:center;font-size:20px;font-weight:800;background:#fff;color:#172033}
.ht-food-stepper span{font-weight:700;white-space:nowrap}
.ht-food-select{display:grid;gap:7px;margin:14px 0}.ht-food-select span{font-weight:700}.ht-food-select select{height:46px;border:1px solid #d9dee6;border-radius:12px;padding:0 12px;background:#fff;color:#172033}
.ht-food-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.ht-food-quick button{border:1px solid #dfe4ea;background:#f7f9fb;border-radius:999px;padding:8px 14px;cursor:pointer}
.ht-food-result-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.ht-food-result-head span{font-size:13px;color:#6f7785}.ht-food-result-head h2{margin:3px 0 0;font-size:23px}.ht-food-result-head strong{background:#f3f6f8;border-radius:999px;padding:8px 12px;font-size:13px}
.ht-food-table{border:1px solid #eef0f3;border-radius:16px;overflow:hidden}.ht-food-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.4fr);gap:14px;padding:12px 14px;border-bottom:1px solid #eef0f3;align-items:center}.ht-food-row:last-child{border-bottom:0}.ht-food-row strong{text-align:left;direction:rtl}.ht-food-th{background:#f7f9fb;font-size:13px;font-weight:800}
.ht-food-pan{margin-top:14px;padding:13px 15px;background:#fff8e8;border:1px solid #f0dfb9;border-radius:14px}.ht-food-note{font-size:13px;line-height:1.9;color:#657080;margin:15px 0 0}
@media(max-width:800px){.ht-food-grid{grid-template-columns:1fr}.ht-food-controls,.ht-food-result-card{padding:17px}.ht-food-stepper{grid-template-columns:44px minmax(80px,1fr) 44px}.ht-food-stepper span{grid-column:1/-1;text-align:center}.ht-food-row{grid-template-columns:minmax(0,1fr) auto}.ht-food-result-head{align-items:flex-start;flex-direction:column}}

/* v14.6.4 laboratory calculators */
.ht-lab-tool{max-width:1180px;margin-inline:auto}.ht-lab-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:22px;align-items:start}.ht-lab-result{background:#fff;border:1px solid #e6e9ef;border-radius:20px;padding:28px;min-height:260px}.ht-lab-result>span{display:block;font-size:13px;color:#64748b;margin-bottom:14px}.ht-lab-result>strong{display:block;font-size:30px;line-height:1.7;direction:ltr;text-align:center;margin:20px 0}.ht-lab-result p{line-height:2;color:#334155}.ht-lab-warning{margin-top:20px;padding:14px 16px;border-radius:14px;background:#fff7ed;font-size:13px;line-height:1.9}.ht-lab-tool .ht-field{display:block;margin:14px 0}.ht-lab-tool .ht-field>span{display:block;margin-bottom:7px;font-weight:700}.ht-lab-tool .ht-field input,.ht-lab-tool .ht-field select{width:100%;min-height:48px;border:1px solid #d8dee8;border-radius:12px;padding:10px 12px;background:#fff}.ht-lab-tool .ht-btn{width:100%;margin-top:12px}@media(max-width:780px){.ht-lab-grid{grid-template-columns:1fr}.ht-lab-result>strong{font-size:24px}}
/* v14.6.5 school + sewing */
.ht-sewing-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}.ht-sewing-result{background:#fff;border:1px solid #e8e8e8;border-radius:18px;padding:24px;position:sticky;top:90px}.ht-sewing-result>span{display:block;font-size:13px;opacity:.7;margin-bottom:8px}.ht-sewing-result>strong{display:block;font-size:34px;line-height:1.4;margin-bottom:12px}.ht-sewing-warning{margin-top:16px;padding:12px 14px;border-radius:12px;background:#f7f7f7;font-size:13px;line-height:1.9}.ht-school-tool .ht-lab-grid{align-items:start}@media(max-width:760px){.ht-sewing-grid{grid-template-columns:1fr}.ht-sewing-result{position:static}}

/* v14.6.6 — 60-second typing test */
.ht-typing-test{display:grid;gap:14px}
.ht-typing-status{display:flex;align-items:baseline;gap:8px;padding:14px 16px;border:1px solid rgba(100,116,139,.22);border-radius:16px;background:#fff}
.ht-typing-status span{font-size:.9rem;color:#64748b}
.ht-typing-status strong{font-size:2rem;line-height:1;font-variant-numeric:tabular-nums}
.ht-typing-status em{font-style:normal;color:#64748b}
.ht-typing-status.is-running{border-color:rgba(79,70,229,.35)}
.ht-typing-status.is-finished{border-color:rgba(15,138,95,.35)}
.ht-typing-reference{padding:18px;border-radius:16px;background:#f8fafc;border:1px solid rgba(100,116,139,.18);font-size:1.05rem;line-height:2;text-align:right;user-select:none}
.ht-wrap[data-tool="typing_speed"] textarea[name="typing_text"]{min-height:190px;font-size:1.05rem;line-height:2}
.ht-wrap[data-tool="typing_speed"] textarea[name="typing_text"]:disabled{background:#f8fafc;cursor:not-allowed}
.ht-typing-progress{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-top:8px}
.ht-typing-progress>i{display:block;height:100%;width:100%;background:currentColor;transform-origin:right center;transition:transform .25s linear}
@media(max-width:720px){.ht-typing-status strong{font-size:1.7rem}.ht-typing-reference{font-size:1rem;line-height:1.9}}

/* v14.6.6 typing test */
.ht-typing-test{display:grid;gap:14px}.ht-typing-status{display:flex;align-items:baseline;gap:8px;padding:14px 16px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.ht-typing-status strong{font-size:2rem;font-variant-numeric:tabular-nums}.ht-typing-status.is-running strong{font-weight:800}.ht-typing-status.is-finished{opacity:.75}.ht-typing-reference{padding:18px;border:1px solid #e5e7eb;border-radius:14px;background:#fafafa;line-height:2;text-align:right;user-select:none}.ht-typing-progress{height:6px;background:#e5e7eb;border-radius:999px;overflow:hidden;direction:ltr}.ht-typing-progress i{display:block;width:100%;height:100%;background:currentColor;transform-origin:left center;transition:transform .2s linear}.ht-wrap[data-tool="typing_speed"] .ht-result-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.ht-wrap[data-tool="typing_speed"] .ht-result-cards span{padding:10px;border:1px solid #e5e7eb;border-radius:12px}.ht-wrap[data-tool="typing_speed"] .ht-result-cards small,.ht-wrap[data-tool="typing_speed"] .ht-result-cards b{display:block}@media(max-width:600px){.ht-wrap[data-tool="typing_speed"] .ht-result-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v14.6.7 — dedicated layouts for school/sewing; religious remains the only forced-wide result family */
.ht-school-tool,
.ht-sewing-tool{max-width:1180px;margin-inline:auto}

/* School: form on the primary/right column, compact result card on the secondary/left column. */
.ht-school-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);
  gap:24px;
  align-items:start;
  margin:22px 0 0;
}
.ht-school-calculator{padding:28px}
.ht-school-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.ht-school-field{display:block;min-width:0}
.ht-school-field-label{display:block;font-size:13px;font-weight:800;color:#26352f;margin-bottom:7px;line-height:1.65}
.ht-school-field-label small{font-size:10px;font-weight:600;color:#7b8881}
.ht-school-input-wrap{display:flex;align-items:center;min-height:52px;border:1px solid #dce6e0;border-radius:14px;background:#fbfdfc;overflow:hidden;transition:.15s}
.ht-school-input-wrap:focus-within{border-color:#74a38b;box-shadow:0 0 0 3px #eaf4ee;background:#fff}
.ht-school-input-wrap input,
.ht-school-input-wrap select{width:100%;min-width:0;height:50px;border:0;outline:0;background:transparent;padding:0 13px;color:#17201d;font:14px var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif)}
.ht-school-input-wrap input{direction:ltr;text-align:right}
.ht-school-actions{display:flex;margin-top:20px}
.ht-school-actions .ht-button{max-width:260px}
.ht-school-result{
  position:sticky;
  top:100px;
  min-height:250px;
  border-radius:24px;
  padding:28px 24px;
  background:#17201d;
  color:#fff;
  box-shadow:0 18px 55px rgba(22,53,39,.10);
  text-align:center;
  overflow:hidden;
}
.ht-school-result:before{content:"";position:absolute;width:170px;height:170px;border:1px solid #34443d;border-radius:50%;left:-75px;top:-75px}
.ht-school-result-label{position:relative;display:block;font-size:11px;color:#afbbb5}
.ht-school-result>strong{position:relative;display:block;font-size:clamp(38px,4vw,54px);line-height:1.35;margin:22px 0 10px;color:#d8eaa3;direction:ltr}
.ht-school-result>p{position:relative;color:#d5ded9;font-size:13px;line-height:1.9;margin:0;padding-top:14px;border-top:1px solid #34403a}
.ht-school-result-tip{position:relative;margin-top:18px;padding:11px 12px;border-radius:12px;background:rgba(255,255,255,.06);font-size:10px;line-height:1.8;color:#aebbb4}

/* Sewing: give every control the same polished field treatment as the rest of Hendese. */
.ht-sewing-tool .ht-calculator{padding:28px}
.ht-sewing-tool .ht-field{display:block;margin:0 0 15px}
.ht-sewing-tool .ht-field>span{display:block;font-size:13px;font-weight:800;color:#26352f;margin-bottom:7px}
.ht-sewing-tool .ht-field input,
.ht-sewing-tool .ht-field select{width:100%;min-height:52px;border:1px solid #dce6e0;border-radius:14px;background:#fbfdfc;padding:0 13px;color:#17201d;font:14px var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif);outline:0}
.ht-sewing-tool .ht-field input:focus,
.ht-sewing-tool .ht-field select:focus{border-color:#74a38b;box-shadow:0 0 0 3px #eaf4ee;background:#fff}
.ht-sewing-tool .ht-field>small{display:block;margin-top:6px;color:#89928e;font-size:10px}
.ht-sewing-tool .ht-btn{width:100%;min-height:52px;border:0;border-radius:14px;background:#236b4b;color:#fff;font:800 13px var(--font-fa,'IRANSansX',Tahoma,sans-serif);cursor:pointer;margin-top:4px}
.ht-sewing-tool .ht-btn:hover{background:#195a3e}
.ht-sewing-result{background:#17201d!important;color:#fff!important;border:0!important;box-shadow:0 18px 55px rgba(22,53,39,.10)!important}
.ht-sewing-result>span{color:#afbbb5!important}
.ht-sewing-result>strong{color:#d8eaa3!important;direction:ltr;text-align:center}
.ht-sewing-result>p{color:#d5ded9!important;line-height:1.9}
.ht-sewing-warning{background:rgba(255,255,255,.06)!important;color:#b7c2bc!important;border:1px solid rgba(255,255,255,.08)}

/* Guardrail: only religious tools are forced into the single wide reading/result flow. */
.ht-wrap:not([data-category="religious"]).ht-school-tool,
.ht-wrap:not([data-category="religious"]).ht-sewing-tool{width:auto!important;max-width:1180px!important}

@media(max-width:900px){
  .ht-school-grid,.ht-sewing-grid{grid-template-columns:1fr}
  .ht-school-result,.ht-sewing-result{position:static}
}
@media(max-width:680px){
  .ht-school-calculator,.ht-sewing-tool .ht-calculator{padding:18px}
  .ht-school-fields{grid-template-columns:1fr;gap:13px}
  .ht-school-actions .ht-button{max-width:none;width:100%}
  .ht-school-result{padding:22px 18px;border-radius:18px}
}


/* v14.6.8 — catalog-wide readability and form polish */
.ht-wrap .ht-head p{font-size:14px;line-height:2;color:#617069;max-width:820px}
.ht-wrap:not([data-category="religious"]) .ht-calculator{overflow:hidden}
.ht-wrap:not([data-category="religious"]) .ht-calc-title h2{line-height:1.7}
.ht-wrap:not([data-category="religious"]) .ht-calc-title p{font-size:12px;line-height:1.8}
.ht-wrap:not([data-category="religious"]) input,
.ht-wrap:not([data-category="religious"]) select,
.ht-wrap:not([data-category="religious"]) textarea{box-sizing:border-box}
.ht-lab-tool{max-width:1180px!important;margin-inline:auto!important}
.ht-lab-tool .ht-calculator{padding:28px}
.ht-lab-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.ht-lab-tool .ht-field{margin:0!important;min-width:0}
.ht-lab-tool .ht-field>span{font-size:13px;line-height:1.7}
.ht-lab-tool .ht-field small{font-size:10px;color:#7b8881}
.ht-lab-tool .ht-btn{min-height:52px;border:0;border-radius:14px;background:#236b4b;color:#fff;font:800 13px var(--font-fa,'IRANSansX',Tahoma,sans-serif);cursor:pointer;margin-top:18px}
.ht-lab-tool .ht-btn:hover{background:#195a3e}
.ht-lab-result{background:#17201d!important;color:#fff!important;border:0!important;box-shadow:0 18px 55px rgba(22,53,39,.10)!important}
.ht-lab-result>span{color:#afbbb5!important}.ht-lab-result>strong{color:#d8eaa3!important}.ht-lab-result p{color:#d5ded9!important}.ht-lab-warning{background:rgba(255,255,255,.06)!important;color:#b7c2bc!important;border:1px solid rgba(255,255,255,.08)!important}
.ht-food-controls .ht-calc-title{margin-bottom:18px}.ht-food-select select:focus,.ht-food-stepper input:focus{outline:0;border-color:#74a38b;box-shadow:0 0 0 3px #eaf4ee}
.ht-school-tool .ht-content,.ht-sewing-tool .ht-content,.ht-lab-tool .ht-content,.ht-food-tool .ht-content{line-height:2}
/* Religious/Quran remain the only family with forced single-column wide reading flow. */
.ht-wrap:not([data-category="religious"]) .ht-layout{width:100%}
@media(max-width:760px){.ht-lab-fields{grid-template-columns:1fr}.ht-lab-tool .ht-calculator{padding:18px}.ht-wrap .ht-head p{font-size:13px;line-height:1.95}}

/* v14.6.9 — agriculture / livestock / aquaculture / beekeeping / mushroom / sericulture */
.ht-agri-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);gap:24px;align-items:start;margin-top:22px}
.ht-agri-calculator{min-width:0}
.ht-agri-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.ht-agri-field{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid #e6e8ec;border-radius:14px;background:#fff}
.ht-agri-field-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700;color:#293142}
.ht-agri-field-label small{font-weight:500;color:#737b8c}
.ht-agri-input-wrap input{width:100%;min-height:48px;border:1px solid #d8dde6;border-radius:10px;padding:10px 12px;background:#fbfcfe;color:#151922;box-sizing:border-box}
.ht-agri-input-wrap input:focus{outline:2px solid rgba(44,95,170,.16);border-color:#6c8fbd;background:#fff}
.ht-agri-actions{margin-top:18px}.ht-agri-actions .ht-button{width:100%;min-height:50px}
.ht-agri-result{position:sticky;top:24px;border:1px solid #e1e5ec;border-radius:18px;background:#fff;padding:22px;box-shadow:0 10px 30px rgba(34,45,64,.06)}
.ht-agri-result-label{display:block;color:#687083;font-weight:700;margin-bottom:10px}.ht-agri-result>strong{display:block;font-size:28px;line-height:1.5;color:#1d3557;margin-bottom:14px}
.ht-agri-details{display:grid;gap:8px;margin:12px 0}.ht-agri-details>div{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px dashed #e4e8ef}.ht-agri-details span{color:#667085}.ht-agri-details strong{color:#25324a}
.ht-agri-result p{margin:12px 0 0;color:#5f6878;line-height:1.9}.ht-agri-caution{margin-top:18px;padding:14px 16px;border:1px solid #ead9b8;border-radius:12px;background:#fffaf0;line-height:1.9}
@media(max-width:820px){.ht-agri-grid{grid-template-columns:1fr}.ht-agri-result{position:static}.ht-agri-fields{grid-template-columns:1fr}}

/* v14.6.9 — readability: roughly 10% larger UI text across Hendese tools */
.ht-wrap .ht-head p,.ht-wrap .ht-label,.ht-wrap .ht-breadcrumb,.ht-wrap .ht-content p,.ht-wrap .ht-content li,
.ht-wrap label,.ht-wrap input,.ht-wrap select,.ht-wrap textarea,.ht-wrap button,.ht-wrap .ht-button,.ht-wrap .ht-btn,
.ht-wrap .ht-result-note,.ht-wrap .ht-result-unit,.ht-wrap .ht-school-result-tip,.ht-wrap .ht-food-note,
.ht-wrap .ht-sewing-warning,.ht-wrap .ht-agri-result p,.ht-wrap .ht-agri-field-label{font-size:110%!important}
.ht-wrap .ht-calc-title p,.ht-wrap .ht-calc-title span,.ht-wrap small{font-size:105%!important}

/* v14.7.0 — poetry, prosody, meter and rhyme */
.ht-poetry-tool{max-width:1180px;margin-inline:auto}
.ht-poetry-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.72fr);gap:24px;align-items:start;margin-top:22px}
.ht-poetry-calculator{padding:28px}
.ht-poetry-field{display:block;margin-top:16px}
.ht-poetry-field>span{display:block;font-weight:800;color:#26352f;margin-bottom:8px;line-height:1.7}
.ht-poetry-field textarea,.ht-poetry-field input{width:100%;box-sizing:border-box;border:1px solid #dce6e0;border-radius:14px;background:#fbfdfc;color:#17201d;padding:13px 15px;outline:0;line-height:2;resize:vertical;font-family:var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif)}
.ht-poetry-field textarea:focus,.ht-poetry-field input:focus{border-color:#74a38b;box-shadow:0 0 0 3px #eaf4ee;background:#fff}
.ht-poetry-actions{display:flex;gap:10px;align-items:center;margin-top:18px}.ht-poetry-actions .ht-button{flex:1;min-height:52px}.ht-poetry-clear{min-height:52px;padding:0 18px;border:1px solid #dce6e0;border-radius:14px;background:#fff;color:#48564f;cursor:pointer}
.ht-poetry-result{position:sticky;top:24px;border-radius:24px;padding:26px 22px;background:#17201d;color:#fff;box-shadow:0 18px 55px rgba(22,53,39,.10);overflow:hidden}
.ht-poetry-result-label{display:block;color:#afbbb5;font-weight:700;margin-bottom:8px}.ht-poetry-result>strong{display:block;color:#d8eaa3;font-size:clamp(24px,3vw,36px);line-height:1.55;margin:10px 0 14px}
.ht-poetry-details{display:grid;gap:0}.ht-poetry-details>div{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr);gap:12px;padding:11px 0;border-bottom:1px solid #34403a;align-items:start}.ht-poetry-details span{color:#afbbb5}.ht-poetry-details strong{color:#fff;font-weight:700;overflow-wrap:anywhere;direction:rtl;text-align:right}
.ht-poetry-result>p{color:#d5ded9;line-height:1.9;margin:14px 0 0}.ht-poetry-caution{margin-top:18px;padding:14px 16px;border:1px solid #ead9b8;border-radius:12px;background:#fffaf0;line-height:2;color:#5f4b27}.ht-poetry-list{margin:0;padding-right:20px;line-height:2.1}.ht-poetry-normalized{padding:12px;border:1px solid #34403a;border-radius:12px;line-height:2.2;color:#fff;background:rgba(255,255,255,.04)}
@media(max-width:850px){.ht-poetry-grid{grid-template-columns:1fr}.ht-poetry-result{position:static}.ht-poetry-calculator{padding:20px}.ht-poetry-actions{flex-direction:column}.ht-poetry-actions>*{width:100%}.ht-poetry-details>div{grid-template-columns:1fr;gap:4px}}


/* v14.7.1 — safer, readable poetry scansion result cards */
.ht-poetry-line-results{display:grid;gap:16px;margin-top:8px}
.ht-poetry-line-card{border:1px solid #34403a;border-radius:16px;padding:16px;background:rgba(255,255,255,.035);min-width:0}
.ht-poetry-line-card h3{margin:0 0 7px;color:#d8eaa3;font-size:1.05em;line-height:1.8}
.ht-poetry-source-line{margin:0 0 10px!important;padding:9px 11px;border-radius:10px;background:rgba(255,255,255,.055);color:#fff!important;line-height:2!important}
.ht-poetry-line-card>div{display:grid;grid-template-columns:minmax(115px,.7fr) minmax(0,1.3fr);gap:10px;padding:8px 0;border-bottom:1px solid #34403a;align-items:start}
.ht-poetry-line-card>div:last-child{border-bottom:0}
.ht-poetry-line-card>div span{color:#afbbb5}
.ht-poetry-line-card>div strong{color:#fff;font-weight:700;overflow-wrap:anywhere;text-align:right;direction:rtl}
@media(max-width:850px){.ht-poetry-line-card>div{grid-template-columns:1fr;gap:3px}}

/* Beginner-first onboarding for all 1387 tools - v16.7 */
.ht-beginner-guide{margin:22px 0 8px;border:1px solid #e1e7ef;border-radius:14px;background:#fff;overflow:hidden;direction:rtl}.ht-bg-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;cursor:pointer;list-style:none;color:#172033}.ht-bg-summary::-webkit-details-marker{display:none}.ht-bg-summary span{display:flex;flex-direction:column;gap:2px}.ht-bg-summary b{font-size:14px;line-height:1.8}.ht-bg-summary small{font-size:12px;color:#6b7280;line-height:1.7}.ht-bg-summary i{font-style:normal;font-size:18px;color:#64748b;transition:transform .2s ease}.ht-beginner-guide[open] .ht-bg-summary i{transform:rotate(180deg)}.ht-bg-body{border-top:1px solid #edf1f5;background:#fbfcfe}.ht-bg-steps{list-style:none!important;margin:0!important;padding:14px 15px 8px!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ht-bg-steps li{border:1px solid #e7edf4;background:#fff;border-radius:12px;padding:11px 12px;margin:0!important}.ht-bg-steps strong{display:block;color:#172033;font-size:13px;margin:0 0 4px;line-height:1.8}.ht-bg-steps p{margin:0;color:#5f6979;font-size:12.5px;line-height:1.9}.ht-bg-actions{display:flex;align-items:center;gap:12px;padding:5px 15px 14px}.ht-bg-actions button{border:0;background:#234fd3;color:#fff;border-radius:10px;min-height:40px;padding:8px 14px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.ht-bg-actions small{color:#667085;line-height:1.8;font-size:12px}.ht-field.is-beginner-focus,.me-field.is-beginner-focus,.dc-panel.is-beginner-focus,.chem-field.is-beginner-focus,.craft-control.is-beginner-focus{outline:3px solid rgba(35,79,211,.2);outline-offset:3px;border-radius:12px}@media(max-width:720px){.ht-bg-steps{grid-template-columns:1fr}.ht-bg-actions{display:block}.ht-bg-actions button{width:100%;margin-bottom:7px}}
.ht-geometry-help{border:1px solid #dfe7f1;background:linear-gradient(135deg,#f8fbff,#fff);border-radius:14px;padding:12px 14px!important;display:flex!important;flex-direction:column;gap:4px}.ht-geometry-help strong{color:#1f365d;font-size:13px}.ht-geometry-help small{color:#5f6f85;line-height:1.8}.ht-wrap[data-tool="area"] .ht-form,.ht-wrap[data-tool="volume"] .ht-form,.ht-wrap[data-tool="perimeter"] .ht-form,.ht-wrap[data-tool="geometry"] .ht-form{align-items:start}.ht-wrap[data-tool="area"] .ht-field select,.ht-wrap[data-tool="volume"] .ht-field select,.ht-wrap[data-tool="perimeter"] .ht-field select,.ht-wrap[data-tool="geometry"] .ht-field select{font-weight:800}


/* v17.5.2 — geometry preview figures: svg-only, small, responsive, lighthouse-safe */
.ht-result .ht-geo-preview{margin-top:16px;padding:14px 14px 12px;border-radius:18px;background:linear-gradient(180deg,#f8fcfa 0%,#f1f8f4 100%);border:1px solid #d7e6dd;text-align:right;color:#173c2d!important;contain:layout paint style;overflow:hidden}
.ht-result .ht-geo-preview,.ht-result .ht-geo-preview *{color:#173c2d!important}
.ht-geo-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.ht-geo-preview-head strong{font-size:14px;font-weight:900}
.ht-geo-preview-head span{font-size:12px;color:#567061!important}
.ht-geo-preview-stage{display:grid;place-items:center;padding:10px;border-radius:14px;border:1px solid #dbe9e1;background:#fff;min-height:196px;aspect-ratio:11 / 8;overflow:hidden;content-visibility:auto;contain-intrinsic-size:220px 170px}
.ht-geo-svg{display:block;width:min(100%,236px);max-width:236px;height:auto;aspect-ratio:220 / 170;vector-effect:none}
.ht-geo-shape,.ht-geo-shape-alt{fill:#eaf5ef;stroke:#2f6b52;stroke-width:2}
.ht-geo-shape-alt{fill:#f4faf7}
.ht-geo-cut{fill:#fff;stroke:#8eb8a0;stroke-width:1.6}
.ht-geo-guide{stroke:#8aa999;stroke-width:1.5;stroke-dasharray:4 4;fill:none}
.ht-geo-dim{stroke:#4f8a6f;stroke-width:1.6}
.ht-geo-svg-text{font:700 11px var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif);fill:#234838}
.ht-geo-preview-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.ht-geo-preview-meta span{display:grid;gap:3px;padding:9px 10px;border:1px solid #dbe8e0;border-radius:12px;background:#fff;min-height:56px}
.ht-geo-preview-meta small{font-size:11px;color:#5f7568!important}
.ht-geo-preview-meta b{font-size:13px;font-weight:800;direction:rtl;overflow-wrap:anywhere}
.ht-geo-preview-caption{display:block;margin-top:9px;font-size:11px;line-height:1.9;color:#5c6d64!important}
@media(min-width:860px){.ht-geo-preview-shell{display:grid;grid-template-columns:minmax(190px,236px) minmax(0,1fr);gap:12px;align-items:start}.ht-geo-preview-meta{margin-top:0}}
@media(max-width:620px){.ht-result .ht-geo-preview{padding:12px}.ht-geo-preview-head{align-items:flex-start;flex-direction:column}.ht-geo-preview-stage{min-height:176px;padding:8px}.ht-geo-preview-meta{grid-template-columns:1fr}.ht-geo-svg{max-width:188px;width:min(100%,188px)}.ht-geo-svg-text{font-size:10px}}


/* v17.5.4 — geometry preview layout collision fix */
.ht-result{isolation:isolate}
.ht-result>.ht-result-kicker,
.ht-result>.ht-result-label,
.ht-result>.ht-result-value,
.ht-result>.ht-result-unit,
.ht-result>.ht-result-note,
.ht-result>.ht-result-helper,
.ht-result>.ht-result-actions,
.ht-result>.ht-geo-preview-host{position:relative;z-index:2}
.ht-geo-preview-host{display:block;width:100%;max-width:100%;min-width:0;clear:both;margin:16px 0 0;overflow:visible}
.ht-geo-preview-host[hidden]{display:none!important}
.ht-geo-preview-host .ht-geo-preview{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin:0;overflow:hidden}
.ht-geo-preview-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;align-items:start;min-width:0}
.ht-geo-preview-stage{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;position:relative;z-index:1}
.ht-geo-preview-meta{width:100%;max-width:100%;min-width:0;margin-top:0!important;position:relative;z-index:2}
.ht-geo-preview-meta span{min-width:0;overflow:hidden}
.ht-geo-preview-meta b,.ht-geo-preview-meta small{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.ht-geo-svg{position:relative;z-index:1;margin-inline:auto;max-width:min(100%,220px)!important}
.ht-geo-preview-caption{position:relative;z-index:2;clear:both}
/* Result sidebar is intentionally narrow even on large screens; keep preview stacked there. */
@media(min-width:860px){.ht-result .ht-geo-preview-shell{grid-template-columns:minmax(0,1fr)!important}.ht-result .ht-geo-preview-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.ht-geo-preview-host{margin-top:12px}.ht-result .ht-geo-preview-meta{grid-template-columns:1fr}.ht-geo-preview-stage{min-height:168px}.ht-geo-svg{max-width:min(100%,184px)!important}}

/* v17.5.5 — preview is relocated into solution studio immediately after load */
.ht-result>.ht-geo-preview-host{margin-top:10px}
.ht-result>.ht-geo-preview-host:empty{display:none!important}

/* v17.6.0 — global mobile form ergonomics */
.ht-sci-mobile-entry{display:none}
@media(max-width:760px){
 .ht-wrap input:not([type="checkbox"]):not([type="radio"]),.ht-wrap select,.ht-wrap textarea{font-size:16px!important}
 .ht-wrap input,.ht-wrap select,.ht-wrap textarea{scroll-margin-top:82px;scroll-margin-bottom:110px}
 .ht-form>.ht-actions{position:sticky;bottom:6px;z-index:16;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);padding:7px;border:1px solid #e3eae6;border-radius:14px;box-shadow:0 8px 22px rgba(20,48,36,.08)}
 .ht-form>.ht-actions .ht-button{min-height:48px}
 .ht-sci-mobile-entry{display:grid;gap:8px;margin-top:8px}
 .ht-sci-mobile-entry>div:first-child{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center}
 .ht-sci-mobile-entry>div:first-child button{border:1px solid #d7e2dc;background:#fff;border-radius:10px;min-height:40px;padding:0 11px;font:800 12px inherit;color:#236b4b}
 .ht-sci-mobile-entry>div:first-child button.is-active{background:#edf5f0;border-color:#76a991}
 .ht-sci-mobile-entry small{font-size:11px;color:#66736e;line-height:1.7}
 .ht-sci-mobile-pad{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;position:sticky;bottom:66px;background:rgba(255,255,255,.97);z-index:15;padding:7px;border:1px solid #e3eae6;border-radius:13px}
 .ht-sci-mobile-pad button{min-height:43px;border:1px solid #dce6e0;background:#fff;border-radius:9px;font:800 14px inherit}
}
@media(max-width:420px){.ht-sci-mobile-entry>div:first-child{grid-template-columns:1fr}.ht-sci-mobile-pad{grid-template-columns:repeat(5,1fr)}}

/* v18.2 extra reference tools */
.ht-html-preview{width:100%;min-height:420px;border:1px solid #dbe7e1;border-radius:16px;background:#fff}.ht-html-editor-actions{display:flex;flex-wrap:wrap;gap:8px}.ht-extra-note-status{display:grid;gap:4px;padding:12px 14px;border:1px solid #dbe7e1;border-radius:14px;background:#f8fbf9}.ht-extra-note-status:empty{display:none}.ht-extra-note-status span{font-size:12px;color:#64756c}.ht-wrap[data-tool="web_screenshot"] .ht-extra-canvas{max-width:100%;height:auto;border-radius:14px;border:1px solid #dbe7e1}
@media(max-width:620px){.ht-html-preview{min-height:340px}.ht-html-editor-actions{display:grid;grid-template-columns:1fr}.ht-html-editor-actions .ht-button,.ht-html-editor-actions .ht-reset{text-align:center}}


/* Kua number calculator */
.ht-kua-partner[hidden]{display:none!important}.ht-kua-result{display:grid;gap:18px;text-align:right}.ht-kua-person{padding:16px;border:1px solid #e5e7eb;border-radius:16px;background:#fff}.ht-kua-person h3,.ht-kua-person h4{margin:0 0 10px}.ht-kua-person h4{margin-top:16px;font-size:14px}.ht-kua-directions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ht-kua-directions span{display:block;padding:10px;border:1px solid #e5e7eb;border-radius:12px}.ht-kua-directions small,.ht-kua-directions b{display:block}.ht-kua-directions small{font-size:11px;line-height:1.7}.ht-kua-directions b{margin-top:4px;font-size:14px}.ht-kua-directions.good span{background:#f7fbf8}.ht-kua-directions.bad span{background:#fff9f9}.ht-kua-alert{margin:10px 0;padding:10px 12px;border:1px dashed #c8a35a;border-radius:12px;background:#fffaf0}.ht-kua-compat,.ht-kua-method{padding:16px;border:1px solid #e5e7eb;border-radius:16px;background:#fafafa}.ht-kua-compat strong{display:block;font-size:18px;margin-bottom:6px}.ht-kua-compat.strong{background:#f6fbf7}.ht-kua-compat.challenging{background:#fff8f8}.ht-kua-compat.mixed,.ht-kua-compat.same_group{background:#fffaf1}.ht-kua-method p,.ht-kua-compat p{margin:7px 0;line-height:2}@media(max-width:700px){.ht-kua-directions{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-kua-person{padding:12px}}@media(max-width:420px){.ht-kua-directions{grid-template-columns:1fr}}

/* Kua form layout fix 18.5.1 */
.ht-wrap[data-tool="kua_number"] .ht-form{align-items:start}
.ht-wrap[data-tool="kua_number"] .ht-kua-person-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;padding:16px;border:1px solid #e4ebe7;border-radius:18px;background:#fbfdfc}
.ht-wrap[data-tool="kua_number"] .ht-kua-person-fields-primary{margin-top:2px}
.ht-wrap[data-tool="kua_number"] .ht-kua-partner{margin-top:2px}
.ht-wrap[data-tool="kua_number"] .ht-kua-person-fields>.ht-field{min-width:0;margin:0}
.ht-wrap[data-tool="kua_number"] .ht-kua-person-fields>.ht-field-wide{grid-column:1/-1}
.ht-wrap[data-tool="kua_number"] .ht-kua-person-fields .ht-domain-audit-note{margin:0}
.ht-wrap[data-tool="kua_number"] .ht-input input{direction:ltr;text-align:right}
@media(max-width:700px){.ht-wrap[data-tool="kua_number"] .ht-kua-person-fields{grid-template-columns:1fr;padding:12px;gap:13px}.ht-wrap[data-tool="kua_number"] .ht-kua-person-fields>.ht-field-wide{grid-column:auto}}

/* Kua result readability fix 18.5.3 */
.ht-wrap[data-tool="kua_number"] .ht-kua-person,
.ht-wrap[data-tool="kua_number"] .ht-kua-compat,
.ht-wrap[data-tool="kua_number"] .ht-kua-method{color:#18372b!important}
.ht-wrap[data-tool="kua_number"] .ht-kua-person h3,
.ht-wrap[data-tool="kua_number"] .ht-kua-person h4,
.ht-wrap[data-tool="kua_number"] .ht-kua-compat h3,
.ht-wrap[data-tool="kua_number"] .ht-kua-method h3{color:#153c2d!important}
.ht-wrap[data-tool="kua_number"] .ht-kua-person .ht-result-cards>span{background:#f8fbf9!important;border-color:#dfe9e4!important}
.ht-wrap[data-tool="kua_number"] .ht-kua-person .ht-result-cards small{color:#6f7f77!important}
.ht-wrap[data-tool="kua_number"] .ht-kua-person .ht-result-cards b{color:#173c2d!important}
.ht-wrap[data-tool="kua_number"] .ht-kua-person .ht-result-details p,
.ht-wrap[data-tool="kua_number"] .ht-kua-compat p,
.ht-wrap[data-tool="kua_number"] .ht-kua-method p{color:#42584e!important}
.ht-wrap[data-tool="kua_number"] .ht-kua-person .ht-result-details b,
.ht-wrap[data-tool="kua_number"] .ht-kua-compat b,
.ht-wrap[data-tool="kua_number"] .ht-kua-method b{color:#153c2d!important}
.ht-wrap[data-tool="kua_number"] .ht-kua-directions span{color:#18372b!important}
.ht-wrap[data-tool="kua_number"] .ht-kua-directions small{color:#64766d!important}
.ht-wrap[data-tool="kua_number"] .ht-kua-directions b{color:#173c2d!important}
.ht-wrap[data-tool="kua_number"] .ht-kua-alert{color:#6c4d16!important}


/* Kua result full isolation 18.5.4 — prevent global dark-result typography leaking into white cards */
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result *{
  text-shadow:none!important;
  filter:none!important;
  -webkit-filter:none!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
  -webkit-text-fill-color:currentColor!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result{
  color:#243d33!important;
  isolation:isolate;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-person,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-compat,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-method{
  background:#ffffff!important;
  color:#243d33!important;
  border-color:#dfe8e3!important;
  box-shadow:0 5px 18px rgba(18,55,40,.06)!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result h3,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result h4,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result strong,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result b{
  color:#173c2d!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result p,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result div,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result span,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result li{
  color:#40584e!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result small{
  color:#667970!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-result-cards>span{
  background:#f7faf8!important;
  border:1px solid #e0e9e4!important;
  color:#40584e!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-result-cards>span small{color:#6c7d75!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-result-cards>span b{color:#173c2d!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-directions span{
  border-color:#dfe8e3!important;
  color:#40584e!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-directions.good span{background:#f3faf6!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-directions.bad span{background:#fff6f6!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-directions small{color:#6b7c74!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-directions b{color:#173c2d!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-alert{
  background:#fff9ec!important;
  color:#694b12!important;
  border-color:#d9b96c!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-compat.strong{background:#f3faf5!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-compat.challenging{background:#fff4f4!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-compat.mixed,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-compat.same_group{background:#fff9ed!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-method{background:#f8faf9!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result *::before,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result *::after{
  text-shadow:none!important;
  filter:none!important;
}
/* Keep the dark outer result header intact, but remove any bright overlays from the content area. */
.ht-wrap[data-tool="kua_number"] .ht-result-note{overflow:visible!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result{position:relative;z-index:3}
@media(max-width:700px){
 .ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-person,
 .ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-compat,
 .ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-method{padding:13px!important;border-radius:14px!important}
}


/* v18.5.5 — Kua result: single dark surface, zero white haze / blur / glass effects */
.ht-wrap[data-tool="kua_number"] .ht-result-note{
  background:transparent!important;
  color:#e9f1ed!important;
  overflow:visible!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result *{
  text-shadow:none!important;
  -webkit-text-stroke:0!important;
  filter:none!important;
  -webkit-filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  mix-blend-mode:normal!important;
  opacity:1!important;
  background-image:none!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result *::before,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result *::after{
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
  filter:none!important;
  backdrop-filter:none!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result{
  position:relative!important;
  z-index:2!important;
  color:#eef5f1!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-person,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-compat,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-method{
  background:#20362d!important;
  color:#eef5f1!important;
  border:1px solid #3d574b!important;
  box-shadow:none!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result h3,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result h4,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result strong,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result b{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result p,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result div,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result span,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result li{
  color:#e6efea!important;
  -webkit-text-fill-color:#e6efea!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result small{
  color:#b9cbc1!important;
  -webkit-text-fill-color:#b9cbc1!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-result-cards>span,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-directions span{
  background:#29443a!important;
  border:1px solid #466257!important;
  color:#eaf3ee!important;
  box-shadow:none!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-result-cards>span small,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-directions small{
  color:#b8cbc1!important;
  -webkit-text-fill-color:#b8cbc1!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-result-cards>span b,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-directions b{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-directions.good span{
  background:#234538!important;
  border-color:#3e6c59!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-directions.bad span{
  background:#493333!important;
  border-color:#765050!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-alert{
  background:#4a3d23!important;
  border:1px solid #806c3c!important;
  color:#fff2bf!important;
  -webkit-text-fill-color:#fff2bf!important;
  box-shadow:none!important;
}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-compat.strong{background:#234538!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-compat.challenging{background:#493333!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-compat.mixed,
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-compat.same_group{background:#493f28!important}
.ht-wrap[data-tool="kua_number"] .ht-result-note .ht-kua-result .ht-kua-method{background:#243a31!important}


/* v18.5.6 — Today result isolation; prevents shared result-card typography/layout collisions */
.ht-wrap[data-tool="today"] .ht-result{
  font-family:var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif)!important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
.ht-wrap[data-tool="today"] .ht-result-kicker{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  margin:0 0 8px!important;
  line-height:1.8!important;
  letter-spacing:0!important;
}
.ht-wrap[data-tool="today"] .ht-result-label{
  display:block!important;
  margin:0!important;
  line-height:1.9!important;
  letter-spacing:0!important;
}
.ht-wrap[data-tool="today"] .ht-result-value{
  margin:14px 0 2px!important;
  font-variant-numeric:tabular-nums;
  font-feature-settings:'tnum' 1;
  letter-spacing:.025em!important;
  line-height:1.25!important;
}
.ht-wrap[data-tool="today"] .ht-result-unit{
  display:block!important;
  margin-top:3px!important;
  line-height:1.9!important;
}
.ht-wrap[data-tool="today"] .ht-result-note{
  display:block!important;
  text-align:right!important;
  padding-top:18px!important;
  margin-top:18px!important;
}
.ht-wrap[data-tool="today"] .ht-today-cards{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
  margin:0!important;
  padding:0!important;
  width:100%!important;
}
.ht-wrap[data-tool="today"] .ht-today-card{
  display:grid!important;
  grid-template-columns:minmax(92px,.8fr) minmax(0,1.2fr)!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
  padding:11px 13px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.045)!important;
  box-shadow:none!important;
  filter:none!important;
  backdrop-filter:none!important;
}
.ht-wrap[data-tool="today"] .ht-today-card small{
  display:block!important;
  margin:0!important;
  color:#aebdb5!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.8!important;
  text-align:right!important;
  white-space:normal!important;
}
.ht-wrap[data-tool="today"] .ht-today-card strong{
  display:block!important;
  margin:0!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:850!important;
  line-height:1.7!important;
  direction:ltr!important;
  text-align:left!important;
  white-space:nowrap!important;
  font-variant-numeric:tabular-nums;
  font-feature-settings:'tnum' 1;
  text-shadow:none!important;
}
.ht-wrap[data-tool="today"] .ht-today-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  margin:13px 0 0!important;
  color:#c6d3cd!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:1.9!important;
  text-align:center!important;
}
.ht-wrap[data-tool="today"] .ht-result-helper{
  display:block!important;
  margin-top:15px!important;
  line-height:1.95!important;
}
.ht-wrap[data-tool="today"] .ht-result-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  margin-top:17px!important;
}
.ht-wrap[data-tool="today"] .ht-result-actions button{
  margin:0!important;
  min-width:0!important;
  padding:0 10px!important;
  white-space:nowrap!important;
  line-height:1.5!important;
}
@media(max-width:620px){
  .ht-wrap[data-tool="today"] .ht-result{padding:26px 18px!important}
  .ht-wrap[data-tool="today"] .ht-result-value{font-size:clamp(38px,13vw,50px)!important;letter-spacing:0!important}
  .ht-wrap[data-tool="today"] .ht-today-card{grid-template-columns:1fr!important;gap:2px!important;padding:10px 12px!important}
  .ht-wrap[data-tool="today"] .ht-today-card small,.ht-wrap[data-tool="today"] .ht-today-card strong{text-align:center!important}
  .ht-wrap[data-tool="today"] .ht-result-actions{grid-template-columns:1fr!important}
}


/* v18.5.7 — calculator result spacing system + circle output separation */
.ht-wrap:not([data-category="religious"]) .ht-result-note{
  line-height:2.15!important;
}
.ht-wrap:not([data-category="religious"]) .ht-result-note>p{
  display:block;
  margin:12px 0!important;
  padding:0 0 10px;
}
.ht-wrap:not([data-category="religious"]) .ht-result-note>p+p{
  margin-top:14px!important;
}
.ht-wrap:not([data-category="religious"]) .ht-result-details{
  display:grid;
  gap:10px;
  margin:14px 0;
}
.ht-wrap:not([data-category="religious"]) .ht-result-details>p{
  display:block;
  margin:0!important;
  padding:9px 0;
  line-height:2.1!important;
}
.ht-wrap:not([data-category="religious"]) .ht-result-details>p+ p{
  border-top:1px solid rgba(255,255,255,.08);
}
.ht-wrap:not([data-category="religious"]) .ht-result-cards{
  gap:10px!important;
  margin-top:14px!important;
  margin-bottom:14px!important;
}
.ht-wrap:not([data-category="religious"]) .ht-result-cards>span{
  padding-block:11px!important;
}
.ht-wrap[data-tool="circle_circumference"] .ht-circle-breakdown{
  display:grid;
  gap:11px;
  margin-top:8px;
  text-align:right;
}
.ht-wrap[data-tool="circle_circumference"] .ht-circle-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:5px 14px;
  align-items:center;
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.035);
}
.ht-wrap[data-tool="circle_circumference"] .ht-circle-row.is-selected{
  border-color:rgba(216,234,163,.38);
  background:rgba(216,234,163,.08);
}
.ht-wrap[data-tool="circle_circumference"] .ht-circle-row span{
  font-weight:800;
  color:#edf5f1!important;
}
.ht-wrap[data-tool="circle_circumference"] .ht-circle-row b{
  direction:ltr;
  font-size:16px!important;
  white-space:nowrap;
  color:#fff!important;
}
.ht-wrap[data-tool="circle_circumference"] .ht-circle-row small{
  grid-column:1/-1;
  color:#b9c9c1!important;
  line-height:1.9;
}
@media(max-width:620px){
  .ht-wrap:not([data-category="religious"]) .ht-result-note>p{margin:10px 0!important;padding-bottom:9px}
  .ht-wrap:not([data-category="religious"]) .ht-result-details{gap:8px}
  .ht-wrap[data-tool="circle_circumference"] .ht-circle-row{grid-template-columns:1fr;gap:4px;padding:12px}
  .ht-wrap[data-tool="circle_circumference"] .ht-circle-row small{grid-column:auto}
  .ht-wrap[data-tool="circle_circumference"] .ht-circle-row b{white-space:normal}
}

/* V18.7.0 — Persian Calendar Pro */
.ht-wrap[data-tool="calendar_year"] .ht-layout{grid-template-columns:minmax(0,1fr)}
.ht-wrap[data-tool="calendar_year"] .ht-result{display:none!important}
.ht-wrap[data-tool="calendar_year"] .ht-calculator{max-width:none;padding:30px}
.ht-wrap[data-tool="calendar_year"] .ht-form{grid-template-columns:minmax(180px,.35fr) minmax(220px,.65fr)}
.ht-wrap[data-tool="calendar_year"] .ht-calendar-pro{grid-column:1/-1;display:grid;gap:16px;margin-top:4px}
.ht-calendar-legend{display:flex;flex-wrap:wrap;gap:9px 16px;align-items:center;padding:12px 14px;border:1px solid #e2ebe6;border-radius:14px;background:#f8fbf9;color:#53645c;font-size:11px;font-weight:800}
.ht-calendar-legend span{display:inline-flex;align-items:center;gap:6px}.ht-calendar-legend i{width:9px;height:9px;border-radius:50%;background:#93a39b}.ht-calendar-legend i.is-today{background:#126a4b;box-shadow:0 0 0 3px #dff1e8}.ht-calendar-legend i.is-holiday{background:#c73b47}.ht-calendar-legend i.is-event{background:#d99a22}.ht-calendar-legend i.is-friday{background:#ea7078}
.ht-wrap[data-tool="calendar_year"] .ht-calendar-detail{display:grid!important;grid-template-columns:minmax(220px,.7fr) minmax(280px,1.3fr);gap:14px 20px;align-items:center;margin:0;padding:18px 20px;border:1px solid #dfe9e4;border-radius:18px;background:linear-gradient(135deg,#f7fbf8,#fff);font-size:12px;line-height:1.85;color:#52655c}
.ht-cal-detail-date{display:grid;gap:4px}.ht-cal-detail-date small{color:#819087;font-size:10px;font-weight:800}.ht-cal-detail-date strong{font-size:16px!important;color:#163d2e!important}.ht-cal-detail-converts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ht-cal-detail-converts span{display:grid;gap:3px;padding:10px 12px;border-radius:12px;background:#eef7f2;color:#66766e;font-size:10px}.ht-cal-detail-converts b{color:#173c2d;font-size:12px;direction:ltr;text-align:right}.ht-cal-detail-events{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px;padding-top:2px}.ht-cal-event-badge,.ht-cal-event-empty{display:inline-flex;align-items:center;min-height:32px;padding:5px 10px;border-radius:999px;background:#fff7df;border:1px solid #f2d995;color:#745617;font-size:10px;font-weight:900}.ht-cal-event-badge.is-holiday{background:#fff0f1;border-color:#efc7cb;color:#a52633}.ht-cal-event-empty{background:#f5f8f6;border-color:#e2eae6;color:#738179}
.ht-wrap[data-tool="calendar_year"] .ht-calendar-output{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}
.ht-wrap[data-tool="calendar_year"] .ht-month{overflow:hidden;border:1px solid #dce7e1;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(22,61,46,.045)}
.ht-month-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 16px 12px;background:linear-gradient(145deg,#f7fbf8,#fff);border-bottom:1px solid #edf2ef}.ht-month-head>div{display:grid;gap:2px}.ht-month-head span{font-size:9px;color:#84928b;font-weight:800}.ht-month-head h3{margin:0!important;color:#173c2d;font-size:15px!important}.ht-month-head small{display:inline-flex;align-items:center;min-height:26px;padding:4px 8px;border-radius:999px;background:#edf7f1;color:#327259;font-size:9px;font-weight:900}
.ht-wrap[data-tool="calendar_year"] .ht-week{display:grid;grid-template-columns:repeat(7,1fr);padding:9px 10px 4px;gap:3px}.ht-wrap[data-tool="calendar_year"] .ht-week span{display:grid;place-items:center;height:24px;color:#78877f;font-size:9px;font-weight:900}.ht-wrap[data-tool="calendar_year"] .ht-week span.is-friday{color:#b73a46}
.ht-wrap[data-tool="calendar_year"] .ht-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:5px 10px 12px}
.ht-wrap[data-tool="calendar_year"] .ht-day-blank{min-height:42px}
.ht-wrap[data-tool="calendar_year"] .ht-days .ht-day{position:relative;display:grid;place-items:center;align-content:center;gap:4px;min-width:0;min-height:42px;padding:4px 2px;border:1px solid transparent;border-radius:11px;background:#f6f9f7;color:#26362f;font:800 10px var(--font-fa,'IRANSansX',Tahoma,sans-serif);cursor:pointer;transition:.15s ease}.ht-wrap[data-tool="calendar_year"] .ht-days .ht-day b{font-size:11px;line-height:1}.ht-wrap[data-tool="calendar_year"] .ht-days .ht-day:hover{transform:translateY(-1px);background:#edf7f2;border-color:#cee1d7}.ht-wrap[data-tool="calendar_year"] .ht-days .ht-day.is-friday{background:#fff6f6;color:#b73541}.ht-wrap[data-tool="calendar_year"] .ht-days .ht-day.has-holiday{background:#fff0f1;color:#a72b37;border-color:#f2d4d7}.ht-wrap[data-tool="calendar_year"] .ht-days .ht-day.is-today{background:#126a4b!important;color:#fff!important;border-color:#126a4b;box-shadow:0 5px 14px rgba(18,106,75,.22)}.ht-wrap[data-tool="calendar_year"] .ht-days .ht-day.is-selected{outline:2px solid #5f9d83;outline-offset:1px}.ht-day-dots{display:flex;gap:2px;height:4px}.ht-day-dots i{width:4px;height:4px;border-radius:50%;background:#d89c2b}.ht-day-dots i.holiday{background:#c73643}.ht-day.is-today .ht-day-dots i{background:#fff!important}
.ht-calendar-events-panel{display:grid;gap:14px;padding:18px;border:1px solid #dde8e2;border-radius:20px;background:#fbfdfc}.ht-calendar-events-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:12px;border-bottom:1px solid #e8efeb}.ht-calendar-events-head>div{display:grid;gap:3px}.ht-calendar-events-head span{font-size:10px;color:#7b8a83;font-weight:800}.ht-calendar-events-head strong{font-size:16px;color:#173c2d}.ht-calendar-events-head small{max-width:300px;color:#77867f;font-size:9px;line-height:1.8}.ht-calendar-events-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ht-calendar-event-row{display:grid;grid-template-columns:82px 1fr auto;gap:10px;align-items:center;min-height:48px;padding:8px 10px;border:1px solid #e3ebe7;border-radius:12px;background:#fff;color:#25372f;text-align:right;font-family:var(--font-fa,'IRANSansX',Tahoma,sans-serif);cursor:pointer}.ht-calendar-event-row:hover{border-color:#b9d4c7;background:#f8fbf9}.ht-calendar-event-row time{font-size:10px;font-weight:900;color:#176548}.ht-calendar-event-row>span{font-size:10px;font-weight:800;line-height:1.7}.ht-calendar-event-row>span small{display:block;color:#86928c;font-size:8px;margin-top:2px}.ht-calendar-event-row>b{padding:3px 6px;border-radius:7px;background:#fff0f1;color:#b52d39;font-size:8px}.ht-calendar-event-row.is-holiday{border-color:#f0d4d7}.ht-calendar-no-event{grid-column:1/-1;margin:0;padding:15px;border:1px dashed #dbe6e0;border-radius:12px;color:#718078;font-size:11px;text-align:center;background:#fff}
@media(max-width:1050px){.ht-wrap[data-tool="calendar_year"] .ht-calendar-output{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-calendar-events-list{grid-template-columns:1fr}}
@media(max-width:700px){.ht-wrap[data-tool="calendar_year"] .ht-calculator{padding:20px 14px}.ht-wrap[data-tool="calendar_year"] .ht-form{grid-template-columns:1fr}.ht-wrap[data-tool="calendar_year"] .ht-calendar-output{grid-template-columns:1fr}.ht-wrap[data-tool="calendar_year"] .ht-calendar-detail{grid-template-columns:1fr;padding:14px}.ht-cal-detail-converts{grid-template-columns:1fr 1fr}.ht-calendar-events-head{align-items:flex-start;display:grid;gap:7px}.ht-calendar-event-row{grid-template-columns:74px 1fr auto}.ht-wrap[data-tool="calendar_year"] .ht-day-blank,.ht-wrap[data-tool="calendar_year"] .ht-days .ht-day{min-height:45px}}
@media(max-width:420px){.ht-cal-detail-converts{grid-template-columns:1fr}.ht-calendar-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ht-calendar-event-row{grid-template-columns:64px 1fr}.ht-calendar-event-row>b{grid-column:2;justify-self:start}.ht-wrap[data-tool="calendar_year"] .ht-days{gap:3px;padding-inline:6px}.ht-wrap[data-tool="calendar_year"] .ht-week{padding-inline:6px}}

/* v18.8.0 — Shared Tehran analog + digital clock */
.ht-clock-widget{font-family:var(--font-fa,'IRANSansX','IRANSans',Tahoma,Arial,sans-serif);direction:rtl;box-sizing:border-box}
.ht-clock-widget *{box-sizing:border-box}
.ht-clock-widget--hero{display:grid;justify-items:center;gap:10px;padding:22px 18px;border:1px solid #dbe8e1;border-radius:24px;background:linear-gradient(145deg,#f7fbf9 0%,#ffffff 55%,#f0f7f3 100%);box-shadow:0 14px 34px rgba(19,77,53,.07)}
.ht-clock-digital{font-variant-numeric:tabular-nums;font-feature-settings:'tnum' 1;direction:ltr;color:#123e2f;font-size:38px;font-weight:950;line-height:1.15;letter-spacing:.04em}
.ht-clock-subtitle{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:5px 10px;color:#64766d;font-size:11px;font-weight:800}.ht-clock-subtitle b{color:#244b3d;font-weight:900}.ht-clock-subtitle small{color:#8a9992;font-size:9px}
.ht-clock-face{position:relative;width:210px;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 50% 45%,#fff 0 61%,#edf5f1 62% 100%);border:8px solid #fff;box-shadow:inset 0 0 0 2px #c9ddd3,0 12px 28px rgba(24,76,55,.13)}
.ht-clock-face:before{content:"";position:absolute;inset:10px;border-radius:50%;background:repeating-conic-gradient(from -1deg,#49695c 0deg 1.2deg,transparent 1.2deg 6deg);-webkit-mask:radial-gradient(circle,transparent 0 78%,#000 79%);mask:radial-gradient(circle,transparent 0 78%,#000 79%);opacity:.65}
.ht-clock-num{position:absolute;color:#315a49;font-size:13px;font-weight:950;line-height:1;z-index:2}.ht-clock-num.n12{top:16px;left:50%;transform:translateX(-50%)}.ht-clock-num.n3{right:17px;top:50%;transform:translateY(-50%)}.ht-clock-num.n6{bottom:16px;left:50%;transform:translateX(-50%)}.ht-clock-num.n9{left:17px;top:50%;transform:translateY(-50%)}
.ht-clock-hand{position:absolute;left:50%;bottom:50%;transform-origin:50% 100%;transform:translateX(-50%) rotate(0deg);border-radius:999px;z-index:3}.ht-clock-hour{width:6px;height:27%;background:#173f31}.ht-clock-minute{width:4px;height:36%;background:#2b6750}.ht-clock-second{width:2px;height:39%;background:#c64751}.ht-clock-center{position:absolute;left:50%;top:50%;width:13px;height:13px;transform:translate(-50%,-50%);border-radius:50%;background:#c64751;border:3px solid #fff;box-shadow:0 0 0 2px #2b6750;z-index:5}
.ht-clock-zone{color:#7e8e87;font-size:10px;font-weight:800}
.ht-clock-widget--compact{display:grid;grid-template-columns:auto 128px minmax(160px,1fr);align-items:center;gap:18px;padding:14px 18px;border:1px solid #dce8e2;border-radius:19px;background:linear-gradient(135deg,#f5faf7,#fff);box-shadow:0 8px 22px rgba(25,75,56,.05)}
.ht-clock-widget--compact .ht-clock-digital{font-size:28px}.ht-clock-widget--compact .ht-clock-face{width:118px;border-width:5px}.ht-clock-widget--compact .ht-clock-face:before{inset:7px}.ht-clock-widget--compact .ht-clock-num{font-size:8px}.ht-clock-widget--compact .n12{top:9px}.ht-clock-widget--compact .n6{bottom:9px}.ht-clock-widget--compact .n3{right:9px}.ht-clock-widget--compact .n9{left:9px}.ht-clock-widget--compact .ht-clock-center{width:9px;height:9px;border-width:2px}.ht-clock-widget--compact .ht-clock-subtitle{display:grid;justify-items:start;gap:3px;text-align:right}.ht-clock-widget--compact .ht-clock-subtitle span{color:#61746a;font-size:11px}.ht-clock-widget--compact .ht-clock-subtitle b{font-size:14px;color:#173e30}.ht-clock-widget--compact .ht-clock-subtitle small{font-size:9px}
.ht-wrap[data-tool="today"] .ht-clock-widget--hero{margin-bottom:4px}.ht-wrap[data-tool="today"] .ht-result-value,.ht-wrap[data-tool="today"] .ht-result-label,.ht-wrap[data-tool="today"] .ht-result-unit{display:none!important}.ht-wrap[data-tool="today"] .ht-result-note{margin-top:0!important;padding-top:0!important;border-top:0!important}
.ht-wrap[data-tool="calendar_year"] .ht-clock-widget--compact{grid-column:1/-1;margin-bottom:2px}
@media(max-width:700px){.ht-clock-widget--hero{padding:18px 12px}.ht-clock-digital{font-size:32px}.ht-clock-face{width:188px}.ht-clock-widget--compact{grid-template-columns:1fr 102px;gap:12px}.ht-clock-widget--compact .ht-clock-digital{font-size:24px}.ht-clock-widget--compact .ht-clock-face{width:96px}.ht-clock-widget--compact .ht-clock-subtitle{grid-column:1/-1;grid-row:2;justify-items:center;text-align:center;padding-top:3px}}


/* v19.7.1 — remove white haze from result sections globally */
.ht-wrap .ht-result,
.ht-wrap .ht-result .ht-result-note,
.ht-wrap .ht-result .ht-result-helper,
.ht-wrap .ht-result .ht-result-actions{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  filter:none!important;
  text-shadow:none!important;
}
.ht-wrap .ht-result .ht-result-note,
.ht-wrap .ht-result .ht-result-helper,
.ht-wrap .ht-result .ht-result-actions{
  background:transparent!important;
  box-shadow:none!important;
}
.ht-wrap .ht-result .ht-result-note::before,
.ht-wrap .ht-result .ht-result-note::after,
.ht-wrap .ht-result .ht-result-helper::before,
.ht-wrap .ht-result .ht-result-helper::after,
.ht-wrap .ht-result .ht-result-actions::before,
.ht-wrap .ht-result .ht-result-actions::after{
  content:none!important;
  display:none!important;
}
.ht-wrap .ht-result .ht-result-label,
.ht-wrap .ht-result .ht-result-value,
.ht-wrap .ht-result .ht-result-unit,
.ht-wrap .ht-result .ht-result-note,
.ht-wrap .ht-result .ht-result-note p,
.ht-wrap .ht-result .ht-result-note li,
.ht-wrap .ht-result .ht-result-note span,
.ht-wrap .ht-result .ht-result-note div,
.ht-wrap .ht-result .ht-result-note small,
.ht-wrap .ht-result .ht-result-note em,
.ht-wrap .ht-result .ht-result-note i,
.ht-wrap .ht-result .ht-result-note b,
.ht-wrap .ht-result .ht-result-note strong,
.ht-wrap .ht-result .ht-result-helper,
.ht-wrap .ht-result .ht-result-helper *,
.ht-wrap .ht-result .ht-result-actions,
.ht-wrap .ht-result .ht-result-actions *{
  text-shadow:none!important;
  filter:none!important;
}


/* v19.11.2 — global automatic contrast guard
   Rule: light result surfaces always use dark readable text.
   Dark result surfaces may use light text.  JS marks text according to the
   nearest opaque result surface, so nested light cards cannot inherit white. */
.ht-result .ht-result-note .ht-on-light,
.ht-result .ht-result-note .ht-on-light-text{
  color:#17372b!important;
  text-shadow:none!important;
}
.ht-result .ht-result-note a.ht-on-light,
.ht-result .ht-result-note a.ht-on-light-text{
  color:#176747!important;
  text-decoration-color:rgba(23,103,71,.38)!important;
}
.ht-result .ht-result-note .ht-on-light:is(b,strong,h1,h2,h3,h4,h5,h6){
  color:#102f24!important;
}
.ht-result .ht-result-note .ht-on-light:is(small,em,i){
  color:#5f7068!important;
}
.ht-result .ht-result-note .ht-on-dark,
.ht-result .ht-result-note .ht-on-dark-text{
  color:inherit;
}
.ht-result .ht-surface-light{
  --ht-surface-fg:#17372b;
  --ht-surface-muted:#62736b;
}


/* v19.11.2 — permanent light-surface readability rule */
.ht-result .ht-on-light,
.ht-result .ht-on-light-text,
.ht-result .ht-surface-light,
.ht-result .ht-surface-light *{
  opacity:1!important;
  -webkit-text-fill-color:currentColor;
}
.ht-result .ht-surface-light,
.ht-result .ht-surface-light p,
.ht-result .ht-surface-light li,
.ht-result .ht-surface-light span,
.ht-result .ht-surface-light div{
  color:#17372b!important;
}
.ht-result .ht-surface-light small,
.ht-result .ht-surface-light em,
.ht-result .ht-surface-light i{
  color:#566a61!important;
}
.ht-result .ht-surface-light b,
.ht-result .ht-surface-light strong,
.ht-result .ht-surface-light h1,
.ht-result .ht-surface-light h2,
.ht-result .ht-surface-light h3,
.ht-result .ht-surface-light h4,
.ht-result .ht-surface-light h5,
.ht-result .ht-surface-light h6{
  color:#102f24!important;
}
.ht-result .ht-surface-light a{color:#155f42!important}
.ht-wrap[data-ui-profile="generator"] .ht-result-note [style*="background"],
.ht-wrap[data-ui-profile="utility"] .ht-result-note [style*="background"]{
  opacity:1;
}

/* Rental contract builder v19.12.1 */
.ht-wrap[data-tool="rental_contract_builder"] .ht-layout{grid-template-columns:1fr;gap:20px}
.ht-wrap[data-tool="rental_contract_builder"] .ht-result{position:static;max-width:none;width:auto}
.ht-wrap[data-tool="rental_contract_builder"] .ht-form{display:block}
.ht-rental-intro{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border:1px solid #dfeae5;border-radius:14px;background:#f6fbf8;margin-bottom:14px;color:#17372b}
.ht-rental-intro strong{font-size:15px}.ht-rental-intro span{font-size:13px;color:#4a665b}
.ht-rental-section{border:1px solid #e1e9e5;border-radius:16px;padding:14px 14px 6px;margin:0 0 14px;background:#fff;min-width:0}
.ht-rental-section legend{padding:0 8px;font-weight:800;color:#153b2e;font-size:15px}
.ht-rental-section-note{margin:0 0 12px;color:#60756d;font-size:12px;line-height:1.9}
.ht-rental-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ht-rental-fields .ht-field-wide{grid-column:1/-1}
.ht-rental-legal-note{display:flex;gap:10px;align-items:flex-start;padding:14px 16px;border:1px solid #eadfbe;border-radius:14px;background:#fffaf0;color:#5c4924;margin:8px 0 4px;line-height:1.9}
.ht-rental-legal-note strong{white-space:nowrap}.ht-rental-legal-note span{font-size:12px}
.ht-rental-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 16px}
.ht-rental-summary>div{background:#f7fbf9!important;border:1px solid #dfeae5;border-radius:12px;padding:10px;color:#17372b!important;display:flex;flex-direction:column;gap:4px}
.ht-rental-summary small{color:#5c7268!important}.ht-rental-summary b{color:#17372b!important}
.ht-rental-document{background:#fff!important;color:#1f2f29!important;border:1px solid #dfe8e4;border-radius:16px;padding:20px;line-height:2.05;text-align:right}
.ht-rental-document h3{color:#12392b!important;font-size:20px;margin:0 0 16px;text-align:center}
.ht-rental-document p{color:#263b33!important;margin:5px 0;font-size:13px}
.ht-rental-document p:nth-of-type(1),.ht-rental-document p:nth-of-type(4),.ht-rental-document p:nth-of-type(7),.ht-rental-document p:nth-of-type(10),.ht-rental-document p:nth-of-type(13),.ht-rental-document p:nth-of-type(16),.ht-rental-document p:nth-of-type(25),.ht-rental-document p:nth-of-type(28),.ht-rental-document p:nth-of-type(32){font-weight:800;color:#113b2c!important}
.ht-rental-document hr{border:0;border-top:1px dashed #d8e3de;margin:9px 0}
.ht-rental-warning{margin-top:12px;padding:12px 14px;border-radius:12px;background:#fff8e8!important;border:1px solid #eadfbd;color:#5d4b26!important;font-size:12px;line-height:1.9}
@media(max-width:760px){.ht-rental-fields{grid-template-columns:1fr}.ht-rental-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-rental-document{padding:14px}.ht-rental-legal-note{flex-direction:column;gap:3px}}

/* Weather must always use Hendese light theme — v19.15.0 */
.ht-wrap[data-tool="weather_live"],.ht-wrap[data-tool="weather_live"] .ht-calculator,.ht-wrap[data-tool="weather_live"] .ht-result,.ht-wrap[data-tool="weather_live"] .ht-weather-grid,.ht-wrap[data-tool="weather_live"] .ht-weather-grid>div{color-scheme:light!important;background-color:#fff;color:#163c2c}
.ht-wrap[data-tool="weather_live"] input,.ht-wrap[data-tool="weather_live"] select,.ht-wrap[data-tool="weather_live"] textarea{color-scheme:light!important;background:#fff!important;color:#17231e!important;border-color:#d8e4de!important}
.ht-wrap[data-tool="weather_live"] .ht-weather-grid>div{background:#fbfdfc!important}.ht-wrap[data-tool="weather_live"] .ht-weather-grid .ht-weather-main{background:linear-gradient(135deg,#edf9f4,#f7fbff)!important}
