/* Light preserves the supplied reference; dark uses the same blue/gold identity. */
.sg-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:6px 10px;border:1px solid #8b9fc5;border-radius:7px;background:#fff;color:#061746;font:600 12px/1.3 Arial,Helvetica,sans-serif;cursor:pointer;flex-shrink:0}
.sg-theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sg-theme-toggle:hover{border-color:#063eb3;background:#eef3fc}
.sg-rates-page .product-time{flex-wrap:wrap;row-gap:2px}
.sg-net-position{display:inline-flex;align-items:center;flex-shrink:0;max-width:100%;padding:1px 5px;border:1px solid #8de0b6;border-radius:4px;background:#e7f8ee;color:#105b34;font:600 10px/1.3 Arial,Helvetica,sans-serif;white-space:normal}
.sg-net-position[data-direction=short]{background:#fff0e9;color:#8c2d14;border-color:#efb09a}
.sg-net-status{font-size:inherit;white-space:normal}
:root{--sg-chart-track:#e2edf8;--sg-chart-neutral:#061746}
html[data-theme=dark]{
 color-scheme:dark;--sg-canvas:#080f20;--sg-panel:#101d34;--sg-ink:#e9efff;
 --sg-soft:#142440;--sg-line:#354b70;--sg-muted:#bacbe7;--sg-blue-text:#8db5ff;
 --canvas:#080f20;--surface:#101d34;--ivory:#080f20;--ivory-deep:#142440;--white:#101d34;
 --bg:#080f20;--bg-soft:#142440;--panel:#101d34;--panel-solid:#142440;
 --text:#e9efff;--ink:#e9efff;--maroon:#e9efff;--muted:#bacbe7;--placeholder:#acbfde;
 --border:#354b70;--line:#354b70;--border-strong:#7ca8ff;--focus:#8db5ff;
 --accent:#8db5ff;--accent-strong:#afcaff;--bronze:#8db5ff;--price:#79e0ab;
 --up:#79e0ab;--down:#ffb5a5;--danger:#ffb5a5;--header-surface:#101d34;--footer-surface:#101d34;
 --sg-chart-track:#263b5b;--sg-chart-neutral:#c6d9ff;
}
html[data-theme=dark],html[data-theme=dark] body,html[data-theme=dark] body.isg-live-page{background:var(--sg-canvas)!important;color:var(--sg-ink)}
html[data-theme=dark] .app-main,html[data-theme=dark] .isg-live-page .app-main{background:var(--sg-canvas)!important}
html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] .panel-title{color:var(--sg-ink)}
html[data-theme=dark] :focus-visible{outline-color:var(--sg-blue-text)!important}
html[data-theme=dark] .app-topbar,html[data-theme=dark] .app-topbar.is-scrolled{background:var(--sg-panel)!important;border-bottom-color:var(--sg-line)}
html[data-theme=dark] .app-topbar .topbar-actions .ma-menu-link{background:var(--sg-panel)!important;color:var(--sg-ink)!important;border-color:var(--sg-line)}
html[data-theme=dark] .sg-theme-toggle{background:#142440;color:var(--sg-ink);border-color:#7893bf}
html[data-theme=dark] .sg-theme-toggle:hover{background:#1c3153}
html[data-theme=dark] .topbar-toggle{background:#142440;border-color:var(--sg-line)}
html[data-theme=dark] .topbar-toggle span,html[data-theme=dark] .topbar-toggle span::before,html[data-theme=dark] .topbar-toggle span::after{background:var(--sg-ink)!important}
html[data-theme=dark] .app-sidebar,html[data-theme=dark] .app-topbar .ma-submenu,html[data-theme=dark] .ma-submenu{background:var(--sg-panel)!important;border-color:var(--sg-line)!important}
html[data-theme=dark] .app-sidebar .ma-menu-link,html[data-theme=dark] .app-sidebar .ma-menu-trigger,html[data-theme=dark] .app-topbar .ma-submenu .ma-menu-link,html[data-theme=dark] .ma-submenu .ma-menu-link{color:var(--sg-ink)!important}
html[data-theme=dark] .nav-svg,html[data-theme=dark] .foot-menu-svg{filter:brightness(0) invert(1)!important}
html[data-theme=dark] .page-head,html[data-theme=dark] .bank-head{background:transparent!important;color:var(--sg-ink)!important}
html[data-theme=dark] .page-head h1,html[data-theme=dark] .bank-head h1,html[data-theme=dark] .copy h2{color:var(--sg-blue-text)!important}
html[data-theme=dark] .glass,html[data-theme=dark] .message-card,html[data-theme=dark] .kyc-form fieldset,html[data-theme=dark] .kyc-review,html[data-theme=dark] .demo-banner,html[data-theme=dark] .note-box,html[data-theme=dark] .verify-note,html[data-theme=dark] .trend-panel{background:var(--sg-panel)!important;color:var(--sg-ink)!important;border-color:var(--sg-line)!important}
html[data-theme=dark] .glass .panel-title,html[data-theme=dark] .kyc-form legend,html[data-theme=dark] .kyc-review h2,html[data-theme=dark] .message-card h2,html[data-theme=dark] .trend-panel h2{color:var(--sg-blue-text)}
html[data-theme=dark] input:not([type=checkbox]):not([type=radio]),html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0b162a!important;color:var(--sg-ink)!important;border-color:#7893bf!important;color-scheme:dark}
html[data-theme=dark] input[readonly]{background:#142440!important}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#acbfde!important}
html[data-theme=dark] option{background:#101d34;color:var(--sg-ink)}
html[data-theme=dark] .btn:not(.primary):not(.buy):not(.sell),html[data-theme=dark] .pill-btn:not(.accent),html[data-theme=dark] .app-content .pill-btn{background:#142440!important;color:var(--sg-blue-text)!important;border-color:#7893bf!important}
html[data-theme=dark] .btn:disabled{background:#263750!important;color:#c4d1e7!important;border-color:#62799d!important}
html[data-theme=dark] .feature-note,html[data-theme=dark] .choice-tds-heading,html[data-theme=dark] .choice-formula{color:var(--sg-ink)!important}
html[data-theme=dark] .choice-total-grid article,html[data-theme=dark] .choice-total-grid article strong{color:var(--sg-ink)!important}
html[data-theme=dark] .choice-total-grid .choice-payable strong{color:var(--sg-gold)!important}
html[data-theme=dark] .trend-result{color:var(--sg-ink)!important}
html[data-theme=dark] .trend-result[data-direction=buy]{background:#12382a!important;color:#9eebbd!important}
html[data-theme=dark] .trend-result[data-direction=sell]{background:#42252d!important;color:#ffc4bb!important}
html[data-theme=dark] .trend-status[data-state=error],html[data-theme=dark] .calc-error,html[data-theme=dark] .field-error,html[data-theme=dark] .error-message,html[data-theme=dark] .feed-error,html[data-theme=dark] .sample-label.is-stale{color:#ffc6a1!important}
html[data-theme=dark] .business-registration dd,html[data-theme=dark] .contact-row address,html[data-theme=dark] .privacy-contact,html[data-theme=dark] .privacy-section p{color:var(--sg-ink)}
html[data-theme=dark] .contact-directions,html[data-theme=dark] .map-fallback a{color:var(--sg-blue-text)}
html[data-theme=dark] .home-section h2{color:var(--sg-blue-text)!important}
html[data-theme=dark] .home-section-nav{background:var(--sg-panel)!important}
html[data-theme=dark] .home-section-nav a[aria-current=true]{color:var(--sg-blue-text)!important}
html[data-theme=dark] .home-facts dd,html[data-theme=dark] .home-lead,html[data-theme=dark] .home-text-link,html[data-theme=dark] .home-service-links a,html[data-theme=dark] .home-steps h3{color:var(--sg-ink)!important}
html[data-theme=dark] .home-slide .home-text-link{color:#e2e9f8!important}
html[data-theme=dark] .home-steps a{color:var(--sg-blue-text)!important}
html[data-theme=dark] .app-footer,html[data-theme=dark] .app-footer .footer-bottom{background:var(--sg-panel)!important;color:var(--sg-ink)!important;border-color:var(--sg-line)!important}
html[data-theme=dark] .sg-footer-copy h2,html[data-theme=dark] .sg-footer-copy h2 span,html[data-theme=dark] .app-footer .footer-heading{color:var(--sg-blue-text)!important}
html[data-theme=dark] .app-footer .sg-footer-contact,html[data-theme=dark] .app-footer .registration-line a,html[data-theme=dark] .app-footer .registration-line .footer-directions,html[data-theme=dark] .app-footer .acc-body a,html[data-theme=dark] .app-footer .footer-bottom span{color:var(--sg-ink)!important}
html[data-theme=dark] .sg-footer-contact>span:last-child,html[data-theme=dark] .app-footer .footer-gstin{color:var(--sg-blue-text)}
html[data-theme=dark] .sg-footer-contact img{filter:brightness(0) invert(1)!important}
html[data-theme=dark] .market-marquee,html[data-theme=dark] .market-marquee-pause,html[data-theme=dark] .market-message-dialog,html[data-theme=dark] .market-message-header,html[data-theme=dark] .market-message-footer,html[data-theme=dark] .market-message-header h2,html[data-theme=dark] .market-message-close{color:var(--sg-ink)!important}
html[data-theme=dark] .market-message-dialog{background:var(--sg-panel)!important}
.market-message-dismiss{color:var(--sg-navy)!important}
.market-message-close:hover,html[data-theme=dark] .market-message-close:hover{color:var(--sg-gold)!important}
html[data-theme=dark] .sg-bottom-nav{background:var(--sg-panel);border-color:var(--sg-line)}
html[data-theme=dark] .sg-bottom-nav a{color:var(--sg-ink)}
html[data-theme=dark] .sg-bottom-nav [aria-current]{color:var(--sg-blue-text)}

/* Keep quote surfaces and the reference's blue/gold table identity in both modes. */
html[data-theme=dark] .rates-board{color:var(--sg-ink)}
html[data-theme=dark] .rates-board .section-heading{color:var(--sg-blue-text);border-color:var(--sg-blue-text)}
html[data-theme=dark] .rates-board .board-meta,html[data-theme=dark] .rates-board .rates-note{color:#bacbe7}
html[data-theme=dark] .rates-board .product-details{background:#172a48;color:#c2d3ef}
html[data-theme=dark] .rates-board .product-details strong{color:var(--sg-ink)}
html[data-theme=dark] .rates-board .board-retry,html[data-theme=dark] .rates-board #rates-panel:focus-visible{color:var(--sg-blue-text)}
html[data-theme=dark] .sg-rise-scene{background:linear-gradient(180deg,#080f20,#101b2e 65%,#0b1830)}
html[data-theme=dark] .sg-rise-sun{background:radial-gradient(circle,#b98d2729 0%,#c798251a 34%,transparent 69%)}
html[data-theme=dark] .sg-rise-sun::before{opacity:.45}
html[data-theme=dark] .sg-rise-sun::after{background:radial-gradient(circle at 50% 34%,#e9c75620,#d6a33918 55%,transparent 73%)}
html[data-theme=dark] .sg-silk-fold{background:linear-gradient(173deg,transparent 8%,#101d34 38%,#233f6259 49%,#142440 54%,#a7863220 60%,transparent 72%);box-shadow:none}
html[data-theme=dark] .sg-silk-fold--gold{background:linear-gradient(174deg,transparent 12%,#101d34 35%,#9f7b3024 47%,#142440 53%,#233f6240 64%,transparent 78%)}
html[data-theme=dark] .sg-rise-toggle{background:#101d34;color:#c0d1ed;border-color:#7893bf}
@media(max-width:900px){.sg-theme-toggle{width:32px;min-width:32px;min-height:32px;padding:5px}.sg-theme-toggle>span{display:none}}

/* Compare each live numeric field with the preceding response for its own template/ID. */
[data-rate-move]{--sg-tick-up:#79e0ab;--sg-tick-down:#ffb5a5}
:is(.quote-available,.price-link,.market-price-positive,.order-rate-pill)[data-rate-move]{--sg-tick-up:#147628;--sg-tick-down:#b3261e}
.ticker [data-rate-move]{--sg-tick-up:#147628;--sg-tick-down:#b3261e}
html[data-theme=dark] .ticker [data-rate-move]{--sg-tick-up:#79e0ab;--sg-tick-down:#ffb5a5}
:is(.rates-board,.isg-live-board,.data-table,.readout,.ticker) [data-rate-move=up],.isg-live-board .rates-table .price-link[data-rate-move=up]{color:var(--sg-tick-up)!important}
:is(.rates-board,.isg-live-board,.data-table,.readout,.ticker) [data-rate-move=down],.isg-live-board .rates-table .price-link[data-rate-move=down]{color:var(--sg-tick-down)!important}
:is(.quote,.price-link,.market-price,.market-value,.order-rate-pill,.readout .val)[data-rate-move]{position:relative}
:is(.quote,.price-link)[data-rate-move=up],:is(.quote,.price-link)[data-rate-move=down]{padding-inline-end:12px!important}
:is(.quote,.price-link,.market-price,.market-value,.order-rate-pill,.readout .val)[data-rate-move=up]::after,:is(.quote,.price-link,.market-price,.market-value,.order-rate-pill,.readout .val)[data-rate-move=down]::after{position:absolute;right:2px;top:2px;font:700 10px/1 Arial,sans-serif;pointer-events:none}
:is(.quote,.price-link,.market-price,.market-value,.order-rate-pill,.readout .val)[data-rate-move=up]::after{content:'↑'}
:is(.quote,.price-link,.market-price,.market-value,.order-rate-pill,.readout .val)[data-rate-move=down]::after{content:'↓'}
