/* Shared emerald and ivory system. Loaded after the legacy stylesheet. */
body.emerald-theme {
	--emerald: #07543b;
	--emerald-deep: #043b2c;
	--emerald-dark: #022b22;
	--gold: #d8b65b;
	--gold-soft: #ead9a8;
	--ivory: #fffdf5;
	--ivory-muted: #f7f2e3;
	--ink: #18362d;
	--muted-ink: #5e6b64;
	--line: #e5d7ad;
	--buy: #16824f;
	--sell: #b6343d;
	--page-width: 1040px;
	--unified-heading-color: 239, 210, 124;
	--unified-text-color: 24, 54, 45;
	--unified-section-image: none;
	--unified-action-image: none;
	--unified-title-image: none;
	--tile-panel-underlay-color: 255, 253, 245;
	--tile-panel-underlay-strength: 1;
	--home-footer-nav-default: 229, 232, 223;
	--home-footer-nav-active: 244, 216, 121;
	--home-footer-nav-hover: 244, 216, 121;
	--unified-page-title-color: 239, 210, 124;
	--unified-back-button-color: 239, 210, 124;
	--unified-back-button-hover-color: 255, 242, 205;
	--home-card-text: 24, 54, 45;
	--home-card-heading: 24, 54, 45;
	--history-table-heading-color: 24, 54, 45;
	--trade-dialog-muted: #5e6b64;
	--trade-dialog-accent: #695014;
	--trade-dialog-success: #126c41;
	--trade-dialog-reject: #18362d;
	--trade-dialog-panel: #f2eddf;
	color: var(--ink);
	background-color: var(--emerald-deep);
	background-image: radial-gradient(ellipse at 20% 5%, rgba(18, 107, 74, .68), transparent 54%), linear-gradient(135deg, #064a35, #022e24 70%);
	background-attachment: fixed;
}
body.emerald-theme *, body.emerald-theme *::before, body.emerald-theme *::after { box-sizing: border-box; }
body.emerald-theme .page-content { width: min(100%, var(--page-width)); margin: 0 auto; padding: 0 18px calc(104px + env(safe-area-inset-bottom)); background: transparent; box-shadow: none; }
body.emerald-theme .header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: auto; min-height: 76px; padding: 10px 8px; border-bottom: 1px solid rgba(216,182,91,.58); background: transparent; box-shadow: none; }
body.emerald-theme .header-brand { display: inline-flex; align-items: center; gap: 9px; color: #f1d57e; text-decoration: none; font-size: 25px; font-weight: 800; }
body.emerald-theme .header-logo { position: static; display: block; width: 42px; height: 48px; max-height: 48px; object-fit: contain; transform: none; }
body.emerald-theme .header-phone-button { position: static; display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: rgba(255,253,245,.08); text-decoration: none; }
body.emerald-theme .header-phone-icon { width: 22px; height: 22px; filter: brightness(0) saturate(100%) invert(81%) sepia(42%) saturate(501%) hue-rotate(5deg) brightness(97%); }
body.emerald-theme .header-announcement, body.emerald-theme .announcement { position: absolute; inset-inline: 70px; top: 50%; width: auto; transform: translateY(-50%); color: #f5edcf; background: transparent; }
body.emerald-theme .header-announcement-track, body.emerald-theme .announcement-track { color: #f5edcf; }
body.emerald-theme .last-update-indicator { width: fit-content; max-width: 100%; margin: 12px auto 4px; padding: 7px 13px; border: 1px solid rgba(216,182,91,.45); border-radius: 999px; color: #fff6d8; background: rgba(0,0,0,.14); font-size: 12px; }
body.emerald-theme .content { width: 100%; max-width: none; margin: 0 auto; padding: 18px 0 28px; color: var(--ink); background: transparent; }
body.emerald-theme .content > *, body.emerald-theme .content section, body.emerald-theme .home-welcome, body.emerald-theme .home-category-links, body.emerald-theme .home-announcements, body.emerald-theme .home-account-summary, body.emerald-theme .accounting-balance-card, body.emerald-theme .support-business-card {
	color: var(--ink);
}
body.emerald-theme .home-hero, body.emerald-theme .home-welcome, body.emerald-theme .home-category-links, body.emerald-theme .home-announcements, body.emerald-theme .home-account-summary,
body.emerald-theme .accounting-summary-grid, body.emerald-theme .accounting-balance-card, body.emerald-theme .accounting-product-list, body.emerald-theme .support-business-card,
body.emerald-theme .panel, body.emerald-theme .card, body.emerald-theme .product-card, body.emerald-theme .finance-card, body.emerald-theme .history-card,
body.emerald-theme .showcase-card, body.emerald-theme .product, body.emerald-theme .table-shell, body.emerald-theme .table-container {
	border: 1px solid var(--line);
	border-radius: 16px;
	color: var(--ink);
	background: var(--ivory);
	box-shadow: 0 5px 18px rgba(0,0,0,.12);
}
body.emerald-theme .home-hero, body.emerald-theme .home-welcome, body.emerald-theme .home-category-links, body.emerald-theme .home-announcements, body.emerald-theme .home-account-summary, body.emerald-theme .accounting-balance-card, body.emerald-theme .support-business-card { padding: 18px; margin: 0 0 14px; }
body.emerald-theme .home-hero h1, body.emerald-theme .home-hero h2, body.emerald-theme .home-trading-heading, body.emerald-theme .page-title, body.emerald-theme .page-title h1, body.emerald-theme .section-title, body.emerald-theme .accounting-balance-card h2 { color: #f0d278; }
body.emerald-theme .home-welcome h1, body.emerald-theme .home-welcome h2, body.emerald-theme .home-announcements h2, body.emerald-theme .home-account-summary h2,
body.emerald-theme .accounting-balance-card h2, body.emerald-theme .support-business-card h2 { color: var(--ink); }
body.emerald-theme .home-category-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
body.emerald-theme .home-category-link, body.emerald-theme .accounting-action-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: linear-gradient(180deg,#fffefa,#f9f3df); text-decoration: none; font-weight: 700; }
body.emerald-theme .home-category-link:hover, body.emerald-theme .accounting-action-link:hover { border-color: #c7a64f; background: #fff8df; }
body.emerald-theme .home-account-summary, body.emerald-theme .accounting-summary-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 10px; }
body.emerald-theme .home-trading-heading { margin: 22px 0 12px; text-align: center; }
body.emerald-theme .home-announcements { line-height: 1.8; }
body.emerald-theme .home-account-logout { color: var(--ink); }
body.emerald-theme .accounting-balance-card { padding: 16px; }
body.emerald-theme .accounting-product-list { overflow: hidden; }
body.emerald-theme .accounting-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 10px; margin: 14px 0; }
body.emerald-theme .product, body.emerald-theme .product-card { overflow: hidden; margin-block: 12px; padding: 14px; background: var(--ivory) !important; background-image: none !important; }
body.emerald-theme .product-price, body.emerald-theme .info-card-sell { border: 1px solid rgba(0,0,0,.08); border-radius: 11px; box-shadow: none; background-image: none !important; text-shadow: none; }
body.emerald-theme .product-price--buy { color: #075c35 !important; background: #dff3e5 !important; }
body.emerald-theme .product-price--sell, body.emerald-theme .info-card-sell { color: #97232c !important; background: #fbe4e5 !important; }
body.emerald-theme button, body.emerald-theme .button, body.emerald-theme [role="button"] { font-family: inherit; }
body.emerald-theme .buy-button, body.emerald-theme .trade-buy-button, body.emerald-theme .button-buy { color: #fff !important; border-color: #087545 !important; background: var(--buy) !important; }
body.emerald-theme .sell-button, body.emerald-theme .trade-sell-button, body.emerald-theme .button-sell { color: #fff !important; border-color: #a82c35 !important; background: var(--sell) !important; }
body.emerald-theme input, body.emerald-theme select, body.emerald-theme textarea { max-width: 100%; border: 1px solid #c8c3b4; border-radius: 9px; color: #18362d; background: #fffefa; }
body.emerald-theme input:focus, body.emerald-theme select:focus, body.emerald-theme textarea:focus { outline: 2px solid rgba(19,118,77,.25); border-color: #13764d; }
body.emerald-theme label, body.emerald-theme .field-label { color: var(--ink); }
body.emerald-theme table { width: 100%; border-collapse: collapse; color: var(--ink); background: var(--ivory); }
body.emerald-theme th, body.emerald-theme td { padding: 10px 12px; border-bottom: 1px solid #e8e0cc; text-align: right; }
body.emerald-theme th { background: #f3eddc; }
body.emerald-theme .table-shell, body.emerald-theme .table-container { overflow-x: auto; }
body.emerald-theme .footer { position: fixed; z-index: 100; inset-inline: 0; bottom: 0; width: 100%; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(220,190,107,.65); background: rgba(2,43,34,.97); box-shadow: 0 -7px 22px rgba(0,0,0,.2); }
body.emerald-theme .footer-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); width: min(100%,var(--page-width)); margin: 0 auto; gap: 2px; }
body.emerald-theme .footer-nav-link { display: flex; min-width: 0; min-height: 54px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 2px; border-radius: 9px; color: #e5e8df; text-align: center; text-decoration: none; font-size: 11px; line-height: 1.25; }
body.emerald-theme .footer-nav-icon { display: block; width: 22px; height: 22px; }
body.emerald-theme .footer-nav-link--active, body.emerald-theme .footer-nav-link[aria-current="page"] { color: #f4d879; background: rgba(255,255,255,.07); box-shadow: inset 0 -2px #d8b65b; }
body.emerald-theme .modal, body.emerald-theme .modal-content, body.emerald-theme .trade-modal-card, body.emerald-theme .contact-modal-card, body.emerald-theme .login-modal-card, body.emerald-theme .login-form, body.emerald-theme .login-card { color: var(--ink); border: 1px solid var(--line); background: var(--ivory); }
body.emerald-theme .modal h1, body.emerald-theme .modal h2, body.emerald-theme .modal h3, body.emerald-theme .trade-modal-card h1, body.emerald-theme .trade-modal-card h2 { color: var(--ink); }
body.emerald-theme .support-page { color: var(--ink); }
body.emerald-theme .support-business-card { background: var(--ivory); }
body.emerald-theme .home-session-error { padding: 10px 12px; border: 1px solid #e4aaaa; border-radius: 10px; color: #85212a; background: #fff0f0; }
body.emerald-theme :focus-visible { outline: 2px solid #e3c35e; outline-offset: 2px; }
@media (min-width: 900px) {
	body.emerald-theme .content { padding-top: 24px; }
	body.emerald-theme .footer-nav-link { min-height: 58px; }
}
@media (max-width: 380px) {
	body.emerald-theme .page-content { padding-inline: 10px; padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
	body.emerald-theme .header { gap: 8px; min-height: 66px; }
	body.emerald-theme .header-brand { font-size: 20px; }
	body.emerald-theme .header-logo { width: 34px; height: 40px; }
	body.emerald-theme .header-announcement, body.emerald-theme .announcement { inset-inline: 56px; font-size: 11px; }
	body.emerald-theme .footer-nav-link { font-size: 10px; }
	body.emerald-theme .footer-nav-icon { width: 20px; height: 20px; }
	body.emerald-theme .home-category-links { grid-template-columns: 1fr; }
}

/* Final component geometry, overriding the legacy illustrated/sprite layout. */
body.emerald-theme { min-height: 100dvh; margin: 0; direction: rtl; }
body.emerald-theme .header { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 16px; inset: auto; width: 100%; border: 0; border-bottom: 1px solid rgba(216,182,91,.58); border-radius: 0; overflow: visible; backdrop-filter: none; }
body.emerald-theme .header-phone-button { transform: none; }
body.emerald-theme .header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-width: 0; }
body.emerald-theme .header-price-time { color: #efd27c; font-size: 11px; line-height: 1.7; text-align: left; }
body.emerald-theme .header-announcement { position: relative; grid-column: 1 / -1; inset: auto; top: auto; width: 100%; height: 26px; transform: none; overflow: hidden; }
body.emerald-theme .header-announcement-track { color: #f3e9c7; }
body.emerald-theme .page-title-icon--contact { mask-image: url('/assets/phone.svg'); -webkit-mask-image: url('/assets/phone.svg'); }
body.emerald-theme .home-hero { background: none; border: 0; box-shadow: none; padding: 10px 0 16px; text-align: center; }
body.emerald-theme .home-hero h1 { color: #efd27c; margin: 0; font-size: clamp(23px,5vw,32px); }
body.emerald-theme .home-hero h1::after { content: '◇'; display: block; font-size: 18px; line-height: 1.2; margin-top: 8px; }
body.emerald-theme .home-welcome { line-height: 2; text-align: center; border-color: #d8b65b; }
body.emerald-theme .home-welcome p { margin: 0; }
body.emerald-theme .home-announcements p { margin: 0; padding-block: 5px; overflow-wrap: anywhere; }
body.emerald-theme .home-category-links { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 10px; }
body.emerald-theme .home-category-link:last-child:nth-child(odd) { grid-column: 1 / -1; }
body.emerald-theme .home-category-link { min-width: 0; font-size: 13px; }
body.emerald-theme .home-trading-heading, body.emerald-theme .category-title,
body.emerald-theme .history-table-heading, body.emerald-theme .section-page-title,
body.emerald-theme #accounting-products-title, body.emerald-theme #accounting-finance-title { color: #efd27c; }
body.emerald-theme .products { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 14px; margin: 14px 0 24px; }
body.emerald-theme .product-category { background: none; padding: 0; box-shadow: none; border: 0; }
body.emerald-theme .product-category + .product-category { margin-top: 28px; }
body.emerald-theme .category-title-row { color: #f3e9c7; }
body.emerald-theme .product, body.emerald-theme .product.product--stacked { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; width: 100%; min-width: 0; margin: 0; padding: 14px; height: auto; }
body.emerald-theme .product::before, body.emerald-theme .product::after { display: none; }
body.emerald-theme .product .product-name { grid-column: 1 / -1; grid-row: 1; width: 100%; height: auto; min-height: 30px; padding: 0; background: none; color: #18362d; border: 0; border-radius: 0; box-shadow: none; text-align: right; white-space: normal; overflow-wrap: anywhere; }
body.emerald-theme .product .product-price { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; grid-row: 2; width: 100%; min-width: 0; min-height: 86px; height: auto; margin: 0; padding: 10px 4px; white-space: normal; overflow: hidden; }
body.emerald-theme .product .product-price--buy { grid-column: 1; }
body.emerald-theme .product .product-price--sell { grid-column: 2; }
body.emerald-theme .product-price-label { font-size: 12px; font-weight: 600; }
body.emerald-theme .product-price-unit { font-size: 10px; font-weight: 400; }
body.emerald-theme .info-card { position: relative; width: 100%; max-width: none; margin-block: 16px; padding: 20px; height: auto; border: 1px solid #d8b65b; border-radius: 16px; background: #fffdf5; color: #18362d; }
body.emerald-theme .info-card-title, body.emerald-theme .info-card-metric-value { color: #18362d; }
body.emerald-theme .info-card-metric-label { color: #5e6b64; }
body.emerald-theme .info-card-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: stretch; }
body.emerald-theme .info-card-metric { background: #f4f0e5; color: #18362d; font-family: inherit; }
body.emerald-theme .info-card-row .info-card-sell { grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 48px; height: auto; }
body.emerald-theme .info-card-title { margin-top: 0; padding-inline: 30px; font-size: 20px; }
body.emerald-theme .info-card-help { color: #07543b; background: #f4edda; border-color: #d8b65b; }
body.emerald-theme .info-card-sell { min-height: 50px; padding: 12px 18px; }
body.emerald-theme .trade-status-controls { margin-block: 12px; }
body.emerald-theme .trade-notices-button, body.emerald-theme .trade-history-cta-link { background: linear-gradient(135deg,#f6df9b,#d9b459); color: #173b2b; border: 1px solid #e7d193; border-radius: 12px; padding: 13px 20px; font-weight: 700; text-decoration: none; }
body.emerald-theme .trade-history-cta-link { display: block; text-align: center; margin-block: 20px 14px; }
body.emerald-theme .home-account-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
body.emerald-theme .home-account-summary small { display: block; color: #5e6b64; margin-bottom: 5px; }
body.emerald-theme .home-account-logout { border: 1px solid #cbb873; background: #f7f1df; padding: 10px 14px; border-radius: 9px; font-size: 13px; }
body.emerald-theme .home-terms-link { text-align: center; margin-block: 16px; }
body.emerald-theme .home-terms-link a { color: #efda9d; }
body.emerald-theme .plain-note, body.emerald-theme .possessions-customer-code,
body.emerald-theme .support-page-intro { color: #e9e5d2; line-height: 1.9; }
body.emerald-theme .accounting-summary-grid { background: none; border: 0; box-shadow: none; padding: 0; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
body.emerald-theme .accounting-balance-card { margin: 0; }
body.emerald-theme .accounting-balance-card h2 { font-size: 15px; line-height: 1.9; margin: 0 0 12px; }
body.emerald-theme .accounting-balance-amount { font-size: 22px; font-weight: 800; margin: 10px 0; overflow-wrap: anywhere; }
body.emerald-theme .accounting-balance-status { font-size: 13px; }
body.emerald-theme .accounting-product-list { display: grid; gap: 10px; list-style: none; padding: 0; background: none; box-shadow: none; border: none; }
body.emerald-theme .accounting-product-list h3 { margin: 0; font-size: 15px; }
body.emerald-theme .accounting-table-scroll { max-width: 100%; overflow-x: auto; margin-block: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory); }
body.emerald-theme .accounting-table { min-width: 570px; margin: 0; font-size: 14px; line-height: 1.9; }
body.emerald-theme .accounting-table caption { padding: 12px 16px; color: var(--ink); background: #f3eddc; text-align: right; font-weight: 700; }
body.emerald-theme .accounting-table th, body.emerald-theme .accounting-table td { padding: 12px 16px; vertical-align: middle; }
body.emerald-theme .accounting-table tbody th { width: 44%; background: transparent; font-weight: 600; }
body.emerald-theme .accounting-table tbody tr:nth-child(even) { background: #f7f2e3; }
body.emerald-theme .accounting-table tbody tr:last-child > * { border-bottom: 0; }
body.emerald-theme .accounting-table .accounting-balance-amount { margin: 0; font-size: 16px; font-weight: 700; white-space: nowrap; }
body.emerald-theme .accounting-table .accounting-balance-amount span { display: inline-block; unicode-bidi: isolate; }
body.emerald-theme .accounting-table .accounting-balance-status { min-width: 160px; }
body.emerald-theme #accounting-products-title, body.emerald-theme #accounting-finance-title { color: #efd27c; font-size: 18px; }
body.emerald-theme .support-directory > h3 { color: #efd27c; font-size: 20px; }
body.emerald-theme .support-directory-card, body.emerald-theme .support-directory-state,
body.emerald-theme .showcase-shell .showcase-filters, body.emerald-theme .showcase-detail-card,
body.emerald-theme .showcase-state, body.emerald-theme .history-table-panel,
body.emerald-theme .finance-form, body.emerald-theme .finance-request-card,
body.emerald-theme .finance-guide-content { background: #fffdf5; color: #18362d; border: 1px solid #e5d7ad; border-radius: 14px; padding: 18px; }
body.emerald-theme .showcase-intro, body.emerald-theme .showcase-pagination { color: #f3e9c7; }
body.emerald-theme .showcase-card-copy, body.emerald-theme .showcase-detail-copy { color: #18362d; }
body.emerald-theme .support-business-card p { line-height: 1.9; overflow-wrap: anywhere; }
body.emerald-theme .support-business-card { margin-top: 18px; }
body.emerald-theme .support-business-card a { color: #07543b; }
body.emerald-theme .support-directory-person strong, body.emerald-theme .support-directory-phone,
body.emerald-theme .showcase-card-copy h2, body.emerald-theme .showcase-detail-copy h1,
body.emerald-theme .showcase-price { color: #18362d; }
body.emerald-theme .support-directory-person span, body.emerald-theme .showcase-more,
body.emerald-theme .showcase-specs dt { color: #5e6b64; }
body.emerald-theme .support-directory-channels .contact-channel-item { color: #18362d; background: #f4f0e5; border-color: #e5d7ad; }
body.emerald-theme .support-directory-channels .contact-channel-title,
body.emerald-theme .support-directory-channels .contact-channel-value { color: #18362d; }
body.emerald-theme .showcase-category, body.emerald-theme .showcase-disclaimer { color: #5f480e; background: #f4edda; }
body.emerald-theme .showcase-specs, body.emerald-theme .showcase-specs > div { border-color: #e5d7ad; }
body.emerald-theme .showcase-shell { padding-inline: 0; position: relative; }
body.emerald-theme .history-table-page { width: 100%; min-width: 0; }
body.emerald-theme .history-table-panel, body.emerald-theme .history-table-scroll { max-width: 100%; overflow-x: auto; }
body.emerald-theme .history-table-scroll { background: #fffdf5; box-shadow: none; }
body.emerald-theme .trade-history-table th { color: #18362d; background: #f3eddc; }
body.emerald-theme .history-pagination button { color: #18362d; border-color: #cbb873; background: #fffdf5; }
body.emerald-theme .history-pagination button[aria-current="page"] { color: #18362d; background: #ead397; }
body.emerald-theme .finance-history-filters { padding: 16px; border-radius: 14px; background: #fffdf5; border: 1px solid #e5d7ad; }
body.emerald-theme .finance-history-row { color: #18362d; }
body.emerald-theme .finance-history-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-block: 20px; color: #f3e9c7; }
body.emerald-theme .finance-history-pagination .finance-action-button { width: auto; min-width: 0; padding: 10px 16px; }
body.emerald-theme .finance-history-status, body.emerald-theme .finance-history-open { color: #68521b; }
body.emerald-theme .finance-history-detail h2 { color: #18362d; }
body.emerald-theme .trade-modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; }
body.emerald-theme .trade-modal-card p, body.emerald-theme .trade-modal-card label,
body.emerald-theme .trade-modal-card .trade-modal-title, body.emerald-theme .trade-modal-card .trade-modal-summary,
body.emerald-theme .login-modal-card, body.emerald-theme .finance-form label { color: #18362d; }
body.emerald-theme .trade-modal-card .trade-modal-error-message { background: #ffe9e8; color: #8a2028; border-color: #e9b6b6; }
body.emerald-theme .trade-modal-close { color: #18362d; }
body.emerald-theme .trade-modal-field input { color: #18362d; background: #fff; border-color: #b8b6a7; }
body.emerald-theme .trade-modal-field input::placeholder { color: #6a746e; }
body.emerald-theme .trade-modal-total { color: #18362d; background: #f2eddf; border: 1px solid #e5d7ad; }
body.emerald-theme .trade-modal-total strong { color: #18362d; }
body.emerald-theme .trade-modal[data-trade-operation] .trade-modal-confirm,
body.emerald-theme .trade-modal-confirm, body.emerald-theme .trade-modal-finish { color: #18362d; background: linear-gradient(135deg,#f6df9b,#d9b459); border: 1px solid #c5a44d; }
body.emerald-theme .trade-modal-state-notice, body.emerald-theme .trade-modal-success > p { color: #18362d; background: #e6f3e9; border-color: #b6d5bf; }
body.emerald-theme .trade-modal-poll-status { color: #63490d; background: #fbf0d4; border-color: #dac58e; }
body.emerald-theme .trade-notice { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 14px; padding: 16px; border: 1px solid #d8bc73; border-radius: 12px; color: #543c0a; background: #fff5d9; line-height: 1.8; }
body.emerald-theme .trade-notice--info { color: #164834; background: #e6f3e9; border-color: #b6d5bf; }
body.emerald-theme .trade-notice-copy { flex: 1 1 180px; min-width: 0; }
body.emerald-theme .trade-notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.emerald-theme .trade-notice-link { color: #07543b; }
body.emerald-theme .home-card, body.emerald-theme .finance-request-list-item { color: #18362d; background: #fffdf5; background-image: none; border: 1px solid #e5d7ad; border-radius: 14px; padding: 18px; }
body.emerald-theme .finance-guide-body, body.emerald-theme .home-card-title { color: #18362d; }
body.emerald-theme .public-terms-state { color: #f3e9c7; }
body.emerald-theme .login-terms-link a, body.emerald-theme .trade-modal-history-link { color: #07543b; }
body.emerald-theme .home-edit-field { color: #18362d; }
body.emerald-theme .finance-action-button, body.emerald-theme .history-load-more,
body.emerald-theme .showcase-pagination button, body.emerald-theme .showcase-state button { color: #18362d; background: #f3e8c8; border: 1px solid #cbb873; }
body.emerald-theme .finance-request-form .home-form-actions > button[type="submit"] { color: #18362d; background: linear-gradient(135deg,#f6df9b,#d9b459); box-shadow: none; }
body.emerald-theme .finance-action-button { box-shadow: none; }
body.emerald-theme .finance-notice { color: #543c0a; background: #fff5d9; box-shadow: none; border-color: #d8bc73; }
body.emerald-theme .finance-notice[role="alert"] { color: #8a2028; background: #ffe9e8; border-color: #e9b6b6; }
body.emerald-theme .finance-input-error { color: #a32e38; }
body.emerald-theme .accounting-balance-status.possessions-status--owe-us { color: #a32e38; }
body.emerald-theme .accounting-balance-status.possessions-status--we-owe { color: #126c41; }
body.emerald-theme .accounting-balance-status.possessions-status--settled { color: #5e6b64; }
body.emerald-theme .possessions-customer-code { color: #f3e9c7; border-color: #bc9d50; background: rgba(0,0,0,.12); }
body.emerald-theme .possessions-customer-code strong { color: #f1d57e; }
body.emerald-theme .history-back-link { position: relative; top: auto; left: 0; right: auto; margin: 0 auto 8px 0; color: #efd27c; transform-origin: left center; }
body.emerald-theme .category-title, body.emerald-theme .home-card-title { text-shadow: none; }
body.emerald-theme .finance-form .plain-note, body.emerald-theme .finance-request-card .plain-note,
body.emerald-theme .history-table-panel .plain-note, body.emerald-theme .showcase-detail-card .plain-note { color: #5e6b64; }
body.emerald-theme .footer-nav-link .footer-nav-icon { background: none; mask: none; -webkit-mask: none; flex-shrink: 0; }
body.emerald-theme .session-recovery { min-height: 100dvh; display: grid; place-items: center; padding: 20px; color: #fff3ce; }
body.emerald-theme .session-recovery button { padding: 12px 18px; border-radius: 10px; }
body.emerald-theme .session-login { min-height: 100dvh; }
@media (prefers-reduced-motion: reduce) {
	body.emerald-theme .header-announcement-track { animation: none; transform: none; }
}
body.emerald-theme .footer { position: fixed; max-width: none; transform: none; left: 0; right: 0; border-radius: 18px 18px 0 0; }
@media (max-width: 680px) {
	body.emerald-theme .products { grid-template-columns: minmax(0,1fr); }
	body.emerald-theme .header-brand { font-size: 23px; }
	body.emerald-theme .header-price-time { font-size: 10px; }
	body.emerald-theme .finance-history-row { grid-template-columns: minmax(0,1fr) auto; }
	body.emerald-theme .finance-history-row > time { grid-column: 1; }
}
@media (max-width: 380px) {
	body.emerald-theme .home-category-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
	body.emerald-theme .home-category-link { font-size: 11px; padding: 10px 7px; }
	body.emerald-theme .header-tools { gap: 6px; }
}

/* Compact trading home: the same content and order on phones and desktops. */
body.emerald-theme { --page-width: 860px; padding: 0; }
body.emerald-theme .page-content { overflow: visible; }
body.emerald-theme .header {
	position: sticky; top: 0; z-index: 200; grid-template-columns: auto minmax(0,1fr) 38px;
	gap: 3px 12px; min-height: 64px; padding: 8px 10px 5px;
	background: rgba(3,65,46,.78); backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%); border-radius: 0 0 12px 12px;
}
body.emerald-theme .header-brand { gap: 5px; font-size: 23px; }
body.emerald-theme .header-logo { width: 35px; height: 37px; max-width: none; }
body.emerald-theme .header .header-announcement { grid-column: 2; grid-row: 1; height: 28px; min-width: 0; margin: 0; align-self: center; }
body.emerald-theme .header-announcement-track { font-size: 12px; line-height: 28px; font-weight: 500; }
body.emerald-theme .header-tools { grid-column: 3; grid-row: 1; }
body.emerald-theme .header-phone-button { width: 36px; height: 36px; flex-basis: 36px; }
body.emerald-theme .header-price-time { grid-column: 1 / -1; grid-row: 2; text-align: left; font-size: 10px; line-height: 1.5; padding-inline: 2px; }
body.emerald-theme .footer { background: rgba(2,43,34,.82); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
body.emerald-theme .trade-modal { z-index: 1000; }
body.emerald-theme .loading-overlay { z-index: 3000; }
body.emerald-theme .content { padding-top: 12px; }
body.emerald-theme .home-hero { padding: 4px 0; margin: 0 0 10px; }
body.emerald-theme .home-hero h1 { display: flex; align-items: center; justify-content: center; gap: 15px; white-space: nowrap; font-size: clamp(20px,4.5vw,27px); line-height: 1.6; }
body.emerald-theme .home-hero h1::before, body.emerald-theme .home-hero h1::after { content: '◇'; display: inline; font-size: 13px; margin: 0; line-height: 1; }
body.emerald-theme .home-specialties { background: #fffdf5; border: 1px solid #d8b65b; border-radius: 14px; padding: 8px; margin-bottom: 10px; }
body.emerald-theme .home-specialties h2 { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; margin: 0 0 6px; color: #18362d; }
body.emerald-theme .home-specialties h2 img { width: 30px; height: 30px; object-fit: contain; }
body.emerald-theme .home-category-links { padding: 0; margin: 0; border: 0; box-shadow: none; border-radius: 0; gap: 6px; }
body.emerald-theme .home-category-link { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 6px; min-height: 53px; padding: 6px 8px; font-size: 12px; line-height: 1.5; }
body.emerald-theme .home-category-link small { display: block; font-size: 10px; color: #6c705f; font-weight: 400; }
body.emerald-theme .product-icon { width: 34px; height: 34px; flex: 0 0 34px; color: #a97c13; }
body.emerald-theme .product-icon--silver { color: #667681; }
body.emerald-theme .home-announcements { padding: 10px 14px; margin-bottom: 10px; font-size: 12px; line-height: 1.7; }
body.emerald-theme .home-announcements h2 { font-size: 16px; margin: 0 0 5px; }
body.emerald-theme .home-announcements p { padding-block: 2px; }
body.emerald-theme .home-trading-heading { margin: 12px 0 8px; font-size: 21px; }
body.emerald-theme .trade-status-controls:empty { display: none; }
body.emerald-theme .product-category, body.emerald-theme .product-category + .product-category { margin: 0; scroll-margin-top: 90px; }
body.emerald-theme .products { grid-template-columns: minmax(0,1fr); margin: 0 0 9px; gap: 9px; }
body.emerald-theme .product, body.emerald-theme .product.product--stacked { padding: 9px 12px; gap: 7px; border-color: #d8b65b; border-radius: 13px; }
body.emerald-theme .product .product-name, body.emerald-theme .product-box-heading { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 15px; }
body.emerald-theme .product-name-title { flex: 1; min-width: 0; }
body.emerald-theme .product .product-name { font-size: 15px !important; }
body.emerald-theme .product-unit, body.emerald-theme .product-box-heading > small { margin-inline-start: auto; flex-shrink: 0; font-size: 10px; font-weight: 400; color: #5e6b64; }
body.emerald-theme .product .product-price { min-height: 47px; padding: 8px 4px; font-size: clamp(18px,4.5vw,23px) !important; border-radius: 9px; direction: ltr; }
body.emerald-theme .product-price--buy { color: #06432a !important; background: #a9d9b5 !important; border-color: #80bd91; }
body.emerald-theme .product-price--sell, body.emerald-theme .info-card-sell { color: #781b29 !important; background: #edabb2 !important; border-color: #d98d97; }
body.emerald-theme .info-card { display: block; margin: 0 0 9px; padding: 9px 12px; border-radius: 13px; scroll-margin-top: 90px; }
body.emerald-theme .product-box-heading { padding-inline-end: 30px; margin-bottom: 7px; }
body.emerald-theme .info-card-title { flex: 1; font-size: 15px; padding: 0; margin: 0; line-height: 1.5; text-align: right; }
body.emerald-theme .info-card-help { top: 12px; inset-inline-end: 10px; width: 24px; height: 24px; }
body.emerald-theme .info-card-help-glyph { font-size: 16px !important; }
body.emerald-theme .info-card-row { display: block; }
body.emerald-theme .info-card-row .info-card-sell { width: 100%; min-height: 47px; height: auto; padding-block: 8px; font-size: 21px; box-shadow: none; animation: none; direction: ltr; }
body.emerald-theme .trade-history-cta-link { margin-block: 12px; min-height: 44px; padding: 10px 14px; }
body.emerald-theme .home-account-modal .trade-modal-card { text-align: center; }
body.emerald-theme .home-account-name { font-size: 20px; font-weight: 700; }
@media (max-width: 380px) {
	body.emerald-theme .header { gap: 3px 7px; grid-template-columns: auto minmax(0,1fr) 34px; }
	body.emerald-theme .header-brand { font-size: 19px; }
	body.emerald-theme .header-logo { width: 28px; }
	body.emerald-theme .home-category-link { font-size: 10px; padding: 5px; grid-template-columns: 27px minmax(0,1fr) auto; gap: 3px; }
	body.emerald-theme .home-category-link .product-icon { width: 27px; height: 27px; }
	body.emerald-theme .product-unit, body.emerald-theme .product-box-heading > small { font-size: 9px; }
}

/* Full-viewport chrome with a non-layout, floating clock beneath the glass. */
body.emerald-theme .site-header-wrap { position: sticky; top: 0; z-index: 200; width: 100%; }
body.emerald-theme .site-header-wrap .header {
	position: relative; top: auto; width: 100%; height: 56px; min-height: 56px;
	grid-template-columns: auto minmax(0,1fr) 38px; grid-template-rows: 1fr;
	gap: 12px; padding: 8px 18px; border-radius: 0;
}
body.emerald-theme .header-brand { position: relative; height: 38px; padding-inline-start: 60px; font-size: 23px; line-height: 38px; }
body.emerald-theme .header-brand .header-logo { position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 60px; height: 62px; max-height: none; }
body.emerald-theme .header .header-announcement, body.emerald-theme .header-tools { grid-row: 1; }
body.emerald-theme .header .header-announcement-track,
body.emerald-theme .header .header-announcement-text { font-size: 14px !important; white-space: nowrap; }
body.emerald-theme .site-header-wrap > .header-price-time {
	position: absolute; top: calc(100% + 3px); left: 18px; display: flex; gap: 5px;
	font-size: 11px; line-height: 1.5; padding: 0; color: #efd27c;
	background: none; pointer-events: none; text-shadow: 0 1px 3px #022b22;
}
body.emerald-theme .home-welcome {
	display: grid; grid-template-columns: 16px minmax(0,1fr) 44px; align-items: center;
	width: fit-content; max-width: 100%; margin: 0 auto 16px; padding: 10px 18px; gap: 14px;
	border: 1.5px solid #e4c56f; border-radius: 999px; color: #fff8e5;
	background: linear-gradient(120deg, #12634cbb, #003d30b3); box-shadow: 0 6px 14px #001e2455, inset 0 1px #fff2;
	font: inherit; line-height: 1.7; cursor: pointer; text-align: center;
}
body.emerald-theme .home-welcome:hover { background: linear-gradient(120deg, #187758cc, #07513fcc); }
body.emerald-theme .home-welcome:focus-visible { outline: 2px solid #fff0b8; outline-offset: 4px; }
body.emerald-theme .home-welcome-label { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; white-space: nowrap; font-size: 14px; }
body.emerald-theme .home-welcome strong { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
body.emerald-theme .home-welcome-label > span { flex-shrink: 0; }
body.emerald-theme .home-welcome-chevron { width: 16px; height: 16px; color: #efd280; }
body.emerald-theme .home-welcome-avatar { display: flex; align-items: center; padding-inline-start: 12px; border-inline-start: 1px solid #ddca8066; color: #f6e6ae; }
body.emerald-theme .home-welcome-avatar svg { width: 32px; height: 32px; flex-shrink: 0; }
body.emerald-theme button.home-category-link { font: inherit; font-size: 12px; text-align: right; cursor: pointer; }
body.emerald-theme .home-announcements p { white-space: pre-wrap; }
body.emerald-theme .bullion-contact-link { display: inline-block; text-decoration: none; text-align: center; }
body.emerald-theme .history-pagination { gap: 6px; flex-wrap: nowrap; }
body.emerald-theme .history-pagination-pages { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; }
body.emerald-theme .history-pagination button { min-width: 28px; min-height: 36px; padding: 5px 7px; font-size: 12px; }
body.emerald-theme .pagination-ellipsis { color: #5e6b64; padding-inline: 2px; }
body.emerald-theme .contact-modal-list { color: #18362d; }
body.emerald-theme .contact-modal-item { color: #18362d; border-color: #e5d7ad; }
body.emerald-theme .contact-modal-label { color: #5e6b64; }
/* Metallic illustrations and quiet, mirrored title rules. */
body.emerald-theme .home-category-link .product-icon { width: 40px; height: 40px; }
body.emerald-theme .home-category-link { grid-template-columns: 40px minmax(0,1fr) auto; }
body.emerald-theme .product .product-icon, body.emerald-theme .product-box-heading .product-icon { width: 36px; height: 36px; flex-basis: 36px; }
body.emerald-theme .home-hero h1, body.emerald-theme .home-trading-heading,
body.emerald-theme .home-announcements h2, body.emerald-theme .home-specialties h2 { display: flex; align-items: center; justify-content: center; gap: 10px; }
body.emerald-theme .home-hero h1::before, body.emerald-theme .home-hero h1::after,
body.emerald-theme .home-trading-heading::before, body.emerald-theme .home-trading-heading::after,
body.emerald-theme .home-announcements h2::before, body.emerald-theme .home-announcements h2::after,
body.emerald-theme .home-specialties h2::before, body.emerald-theme .home-specialties h2::after {
	content: ''; display: block; height: 1px; min-width: 12px; max-width: 80px; flex: 1 1 40px;
	background: linear-gradient(to left, #d4b45f, transparent); margin: 0;
}
body.emerald-theme .home-hero h1::after, body.emerald-theme .home-trading-heading::after,
body.emerald-theme .home-announcements h2::after, body.emerald-theme .home-specialties h2::after { background: linear-gradient(to right, #d4b45f, transparent); }
body.emerald-theme .home-hero h1 > span::before, body.emerald-theme .home-hero h1 > span::after { content: '◇'; display: inline-block; vertical-align: middle; margin-inline: 8px; font-size: 10px; }
body.emerald-theme .home-announcements h2 { gap: 7px; font-size: 16px; }
body.emerald-theme .home-announcements h2 .product-icon { width: 30px; height: 34px; flex-basis: 30px; }
body.emerald-theme .home-announcements h2 > span { min-width: 0; }
body.emerald-theme .home-announcements h2::before, body.emerald-theme .home-announcements h2::after { max-width: 64px; }
body.emerald-theme .trade-history-cta-link { display: flex; align-items: center; justify-content: center; gap: 12px; }
body.emerald-theme .home-history-icon { width: 25px; height: 25px; flex: 0 0 25px; }
body.emerald-theme .trade-history-refresh-controls { display: flex; justify-content: flex-end; margin-bottom: 14px; }
@media (max-width: 680px) {
	body.emerald-theme.possessions-page .accounting-table-scroll { margin-block: 10px; }
	body.emerald-theme.possessions-page .accounting-table { width: 100%; min-width: 0; font-size: 12px; line-height: 1.6; }
	body.emerald-theme.possessions-page .accounting-table caption { padding: 8px; font-size: 12px; }
	body.emerald-theme.possessions-page .accounting-table th,
	body.emerald-theme.possessions-page .accounting-table td { padding: 8px 6px; white-space: normal; }
	body.emerald-theme.possessions-page .accounting-table tbody th { width: 34%; overflow-wrap: anywhere; }
	body.emerald-theme.possessions-page .accounting-table .accounting-balance-amount { font-size: 13px; white-space: nowrap; }
	body.emerald-theme.possessions-page .accounting-table .accounting-balance-status { min-width: 0; font-size: 11px; }
	body.emerald-theme.possessions-page .plain-note,
	body.emerald-theme.possessions-page .possessions-customer-code { font-size: 11px; line-height: 1.7; }
	body.emerald-theme.possessions-page #accounting-products-title,
	body.emerald-theme.possessions-page #accounting-finance-title { font-size: 16px; }
	body.emerald-theme .site-header-wrap .header { height: 50px; min-height: 50px; padding: 6px 10px; gap: 7px; grid-template-columns: auto minmax(0,1fr) 32px; }
	body.emerald-theme .header-brand { font-size: 18px; padding-inline-start: 45px; height: 32px; line-height: 32px; }
	body.emerald-theme .header-brand .header-logo { width: 48px; height: 52px; }
	body.emerald-theme .header-phone-button { width: 30px; height: 30px; flex-basis: 30px; }
	body.emerald-theme .header-phone-icon { width: 17px; height: 17px; }
	body.emerald-theme .header .header-announcement-track,
	body.emerald-theme .header .header-announcement-text { font-size: 10px !important; }
	body.emerald-theme .site-header-wrap > .header-price-time { left: 10px; flex-direction: column; gap: 0; align-items: flex-start; font-size: 9px; }
	body.emerald-theme .home-welcome { padding: 8px 12px; gap: 9px; grid-template-columns: 14px minmax(0,1fr) 38px; }
	body.emerald-theme .home-welcome-label { font-size: 12px; }
	body.emerald-theme .home-welcome strong { font-size: 14px; }
	body.emerald-theme .home-welcome-avatar { padding-inline-start: 9px; }
	body.emerald-theme .home-welcome-avatar svg { width: 29px; height: 29px; }
	body.emerald-theme button.home-category-link { font-size: 11px; }
	body.emerald-theme .history-pagination { gap: 4px; }
	body.emerald-theme .history-pagination-pages { gap: 2px; }
	body.emerald-theme .history-pagination button { min-width: 23px; padding: 4px; font-size: 11px; }
	body.emerald-theme .home-hero h1, body.emerald-theme .home-trading-heading,
	body.emerald-theme .home-announcements h2, body.emerald-theme .home-specialties h2 { gap: 6px; }
	body.emerald-theme .home-trading-heading { font-size: 19px; }
	body.emerald-theme .home-announcements h2 { font-size: 14px; }
	body.emerald-theme .home-announcements h2 .product-icon { width: 27px; height: 31px; flex-basis: 27px; }
}
@media (max-width: 380px) {
	body.emerald-theme .home-category-link .product-icon { width: 32px; height: 36px; }
	body.emerald-theme .home-category-link { grid-template-columns: 32px minmax(0,1fr) auto; gap: 4px; }
	body.emerald-theme .home-hero h1 > span::before, body.emerald-theme .home-hero h1 > span::after { margin-inline: 4px; }
}
