/* Thahby identity. Existing field IDs, 3D canvas and price client are untouched. */
.thahby-diamond-page{--bg-primary:#f5f7f6;--bg-card:#fff;--bg-secondary:#eff3f1;--text-main:#1d3631;--text-muted:#70817a;--border-color:#e1e9e4;--accent-gold:#9b762d;--accent-gold-light:#f6efe0;margin:0;background:var(--bg-primary);color:var(--text-main);font:16px/1.7 'Tajawal',sans-serif}
[data-theme=dark] .thahby-diamond-page{--bg-primary:#101d19;--bg-card:#192b24;--bg-secondary:#21372d;--text-main:#eff5f1;--text-muted:#a6b8ad;--border-color:#304638;--accent-gold:#dfbd76;--accent-gold-light:#383321;background:var(--bg-primary)}
.thahby-diamond-page #thahby-diamond-tool{--dt-bg:var(--bg-primary);--dt-ink:var(--text-main);--dt-muted:var(--text-muted);--dt-line:var(--border-color);--dt-gold:var(--accent-gold);--dt-field:var(--bg-card);--dt-soft:var(--bg-secondary);font-family:'Tajawal',sans-serif;font-size:16px;padding:0 36px 40px}
#thahby-diamond-tool .dt-window{max-width:1208px;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);column-gap:28px;row-gap:0;overflow:visible;border:0;border-radius:0;background:transparent;isolation:auto}
#thahby-diamond-tool .dt-header{grid-column:1/-1;min-height:84px;padding:16px 0;gap:24px;flex-wrap:wrap;border-bottom:1px solid var(--dt-line)}
#thahby-diamond-tool .dt-brand{display:flex;align-items:center;gap:10px;font:800 28px/1.2 'Tajawal',sans-serif;color:var(--dt-gold)}
#thahby-diamond-tool .dt-brand img{width:44px;height:44px;object-fit:contain;border-radius:12px}
#thahby-diamond-tool .dt-brand small{display:block;font:500 9px/2 'Montserrat',sans-serif;letter-spacing:3px;margin:3px 0 0}
#thahby-diamond-tool .dt-header-links{margin-inline-start:auto;font-size:14px;gap:12px}
#thahby-diamond-tool .dt-header-links a{text-decoration:none;min-height:44px;display:flex;align-items:center}
#thahby-diamond-tool .dt-header-links button{border-radius:12px;background:var(--dt-soft);font-size:13px}
#thahby-diamond-tool .th-language-nav{padding:0;gap:5px;font:500 13px/1.6 'Tajawal',sans-serif}
#thahby-diamond-tool .th-language-nav a{min-height:38px;padding:7px 10px;border-radius:9px;text-decoration:none;color:var(--dt-muted)}
#thahby-diamond-tool .th-language-nav a[aria-current=page]{color:var(--dt-gold);background:var(--accent-gold-light);font-weight:700}
#thahby-diamond-tool .dt-intro{grid-column:1/-1;text-align:start;padding:32px 0 26px}
#thahby-diamond-tool .dt-kicker{font:600 11px/1.7 'Montserrat',sans-serif;letter-spacing:2px}
#thahby-diamond-tool h1{font:800 42px/1.3 'Tajawal',sans-serif;margin:8px 0}
#thahby-diamond-tool h1:after{content:'.';color:var(--dt-gold)}
#thahby-diamond-tool .dt-sub{font-size:16px;line-height:1.8;max-width:680px}
#thahby-diamond-tool .dt-studio{grid-column:1;grid-row:3;align-self:start;position:sticky;top:24px;margin:0;border-radius:22px;border:1px solid #446356;background:radial-gradient(ellipse at 30% 10%,#52604460,transparent 65%),#163d33;box-shadow:0 16px 35px #183f3512}
#thahby-diamond-tool canvas{height:370px}
#thahby-diamond-tool .dt-studio-head{inset:22px 22px auto;font-size:13px;color:#edcf91}
#thahby-diamond-tool .dt-turn{font-family:inherit;font-size:13px;background:#ffffff0c;border-color:#ffffff25;border-radius:11px;color:#f2e9d5;padding:8px 12px}
#thahby-diamond-tool .dt-studio-foot{inset:auto 24px 22px;font-size:12px;color:#b8cfc3}
#thahby-diamond-tool .dt-stone-name{font-size:20px;font-weight:700}
#thahby-diamond-tool .dt-stone-en{font:500 11px/2 'Montserrat',sans-serif;color:#edcf91;letter-spacing:1px}
#thahby-diamond-tool .dt-content{grid-column:2;grid-row:3;min-width:0;background:var(--dt-field);border:1px solid var(--dt-line);border-radius:22px;padding:28px;box-shadow:0 6px 30px #233a3005}
#thahby-diamond-tool .dt-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}
#thahby-diamond-tool .dt-label{font-size:14px;font-weight:600;margin-bottom:7px}
#thahby-diamond-tool .dt-input,#thahby-diamond-tool .dt-select{font:500 16px/1.5 'Tajawal',sans-serif;height:50px;border-radius:11px;background:var(--dt-bg);padding:11px 13px;transition:border-color .2s,background .2s}
#thahby-diamond-tool .dt-input:focus,#thahby-diamond-tool .dt-select:focus{border-color:var(--dt-gold);background:var(--dt-field)}
#thahby-diamond-tool .dt-hint{font-size:12px;margin-top:5px}
#thahby-diamond-tool .dt-field:has(#dt-currency){grid-column:1/-1}
#thahby-diamond-tool .dt-action{font:700 17px/1.5 'Tajawal',sans-serif;background:#183f35;border:1px solid #183f35;color:#fff;min-height:52px;border-radius:12px;margin:2px 0 0;transition:background .2s,transform .2s}
#thahby-diamond-tool .dt-action:hover:not(:disabled){background:#235646;transform:translateY(-1px)}
#thahby-diamond-tool .dt-action>span[aria-hidden]{color:#edcf91;font-size:24px}
[data-theme=dark] #thahby-diamond-tool .dt-action{background:#dfbd76;border-color:#dfbd76;color:#183f35}
[data-theme=dark] #thahby-diamond-tool .dt-action:hover:not(:disabled){background:#ecd29c}
[data-theme=dark] #thahby-diamond-tool .dt-action>span[aria-hidden]{color:#183f35}
#thahby-diamond-tool .dt-result{padding:24px 20px;border-radius:16px;background:var(--accent-gold-light);border-color:var(--dt-gold);margin-top:24px;scroll-margin:24px}
#thahby-diamond-tool .dt-result:before{display:none}
#thahby-diamond-tool .dt-result-label{font-size:14px;font-weight:600}
#thahby-diamond-tool .dt-price{font:600 clamp(28px,3vw,38px)/1.7 'Montserrat',sans-serif;gap:10px;overflow-wrap:anywhere}
#thahby-diamond-tool .dt-price small{font:500 14px/1.7 'Tajawal',sans-serif}
#thahby-diamond-tool .dt-unit-price,#thahby-diamond-tool .dt-model-note{font-size:13px}
#thahby-diamond-tool .dt-summary{font-size:14px;line-height:1.8}
#thahby-diamond-tool .dt-snapshot{font-size:12px;line-height:1.9;margin-top:18px;overflow-wrap:anywhere}
#thahby-diamond-tool .dt-disclosure{font-size:14px;margin-top:20px;padding-top:14px}
#thahby-diamond-tool .dt-disclosure summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600}
#thahby-diamond-tool .dt-disclosure p{font-size:13px;line-height:1.9}
#thahby-diamond-tool .dt-footer{grid-column:1/-1;margin-top:32px;padding:20px 0;font-size:13px}
#thahby-diamond-tool .dt-error{font-size:14px;line-height:1.7}
@media(max-width:800px){
 .thahby-diamond-page #thahby-diamond-tool{padding:0 20px 24px}
 #thahby-diamond-tool .dt-window{display:block}
 #thahby-diamond-tool .dt-header{gap:12px;min-height:0;padding:14px 0}
 #thahby-diamond-tool .th-language-nav{width:100%;justify-content:flex-start;border-top:1px solid var(--dt-line);padding-top:8px}
 #thahby-diamond-tool .dt-intro{padding:25px 0 20px}
 #thahby-diamond-tool h1{font-size:34px}
 #thahby-diamond-tool .dt-studio{position:relative;top:auto;margin-bottom:18px}
 #thahby-diamond-tool canvas{height:270px}
 #thahby-diamond-tool .dt-content{padding:22px}
}
@media(max-width:460px){
 .thahby-diamond-page #thahby-diamond-tool{padding-inline:18px}
 #thahby-diamond-tool .dt-brand{font-size:25px;gap:7px}
 #thahby-diamond-tool .dt-brand img{width:36px;height:36px}
 #thahby-diamond-tool .dt-brand small{display:block;font-size:8px;letter-spacing:2px}
 #thahby-diamond-tool .dt-header-links{gap:10px;font-size:12px}
 #thahby-diamond-tool .dt-header-links button{font-size:12px;padding:8px 10px}
 #thahby-diamond-tool .dt-sub{font-size:15px}
 #thahby-diamond-tool .dt-content{padding:20px 16px}
 #thahby-diamond-tool .dt-form{gap:16px 12px}
 #thahby-diamond-tool canvas{height:250px}
 #thahby-diamond-tool .dt-studio-head{inset:16px 16px auto}
 #thahby-diamond-tool .dt-studio-foot{inset:auto 16px 18px;font-size:11px}
 #thahby-diamond-tool .dt-stone-name{font-size:18px}
}
@media(prefers-reduced-motion:reduce){#thahby-diamond-tool *{transition:none!important;scroll-behavior:auto}}
