/* Dalmia Computers / Royal Amethyst v1
   Shared presentation layer. Scoped by an explicit brand marker; business,
   auth, visibility, chart colors and document geometry are not inferred here. */
html[data-dc-brand="royal-amethyst"] {
  color-scheme: dark;
  --ra-bg: #170D27; --ra-surface: #2A1742; --ra-raised: #35204F;
  --ra-soft: #231536; --ra-ink: #F7F1FF; --ra-muted: #C9BED7;
  --ra-accent: #AA7AF1; --ra-on-accent: #170D27; --ra-gold: #D7B76D;
  --ra-cyan: #69E3F1; --ra-border: #59436F; --ra-input-border: #8E76A9;
  --ra-ok: #7CE1B6; --ra-ok-bg: #17392D; --ra-danger: #FFB2C0;
  --ra-danger-bg: #4C1829; --ra-warn: #F5D48B; --ra-warn-bg: #4A341A;
  --ra-shadow: 0 18px 44px rgb(9 3 17 / 24%);
  --ra-header: rgb(23 13 39 / 96%);
  --ra-radius: 20px;
}
html[data-dc-brand="royal-amethyst"][data-dc-theme="light"] {
  color-scheme: light;
  --ra-bg: #F8F4FD; --ra-surface: #FFFFFF; --ra-raised: #F0E7FA;
  --ra-soft: #F3EDF9; --ra-ink: #29143D; --ra-muted: #655474;
  --ra-accent: #6B37A8; --ra-on-accent: #FFFFFF; --ra-gold: #755515;
  --ra-cyan: #126473; --ra-border: #CEBEDB; --ra-input-border: #927AA8;
  --ra-ok: #14613E; --ra-ok-bg: #E3F5EA; --ra-danger: #9A233D;
  --ra-danger-bg: #FCE8ED; --ra-warn: #765014; --ra-warn-bg: #FCF0D6;
  --ra-shadow: 0 18px 44px rgb(53 23 78 / 10%);
  --ra-header: rgb(248 244 253 / 97%);
}

/* Compatibility tokens keep all existing page families on the same palette.
   Aliases preserve callers; new components should consume --ra-* directly. */
html[data-dc-brand="royal-amethyst"],
html[data-dc-brand="royal-amethyst"] body {
  --dc-bg: var(--ra-bg); --dc-surface: var(--ra-surface); --dc-surface-alt: var(--ra-raised);
  --dc-surface-tint: var(--ra-soft); --dc-midnight: var(--ra-bg); --dc-midnight-deep: var(--ra-soft);
  --dc-ink: var(--ra-ink); --dc-ink-soft: var(--ra-ink); --dc-muted: var(--ra-muted);
  --dc-indigo: var(--ra-accent); --dc-indigo-dark: var(--ra-accent); --dc-indigo-soft: var(--ra-soft);
  --dc-cyan: var(--ra-cyan); --dc-cyan-ink: var(--ra-cyan); --dc-cyan-bg: var(--ra-soft);
  --dc-gold-ink: var(--ra-gold); --dc-gold-bg: var(--ra-soft); --dc-gold-border: var(--ra-gold);
  --dc-border: var(--ra-border); --dc-border-strong: var(--ra-input-border);
  --dc-line: var(--ra-border); --dc-line-strong: var(--ra-input-border);
  --dc-ice: var(--ra-ink); --dc-graphite: var(--ra-soft); --dc-charcoal: var(--ra-bg); --dc-silver: var(--ra-muted);
  --dc-surface-raised: var(--ra-raised); --dc-surface-soft: var(--ra-soft); --dc-cyan-soft: var(--ra-soft);
  --dc-ok-bg: var(--ra-ok-bg); --dc-ok-ink: var(--ra-ok); --dc-warn-bg: var(--ra-warn-bg); --dc-warn-ink: var(--ra-warn);
  --dc-shadow-sm: 0 4px 14px rgb(14 4 28 / 10%); --dc-shadow-md: var(--ra-shadow); --dc-shadow-lg: var(--ra-shadow);
  --ru-bg: var(--ra-bg); --ru-card: var(--ra-surface); --ru-card2: var(--ra-raised);
  --ru-ink: var(--ra-ink); --ru-muted: var(--ra-muted); --ru-gold: var(--ra-gold);
  --ru-cyan: var(--ra-cyan); --ru-violet: var(--ra-accent); --ru-border: var(--ra-border);
  --dp-ice: var(--ra-ink); --dp-cyan: var(--ra-cyan); --dp-indigo: var(--ra-accent); --dp-navy: var(--ra-bg);
  --dp-ink: var(--ra-ink); --dp-muted: var(--ra-muted); --dp-line: var(--ra-border); --dp-card: var(--ra-surface);
  --v3-ice: var(--ra-ink); --v3-cyan: var(--ra-cyan); --v3-indigo: var(--ra-accent); --v3-navy: var(--ra-bg);
  --v3-ink: var(--ra-ink); --v3-muted: var(--ra-muted); --v3-line: var(--ra-border); --v3-card: var(--ra-surface);
  --rn-bg: var(--ra-bg); --rn-panel: var(--ra-surface); --rn-line: var(--ra-border);
  --rn-gold: var(--ra-gold); --rn-ink: var(--ra-ink); --rn-muted: var(--ra-muted);
  --ro-bg: var(--ra-bg); --ro-surface: var(--ra-surface); --ro-violet: var(--ra-accent); --ro-cyan: var(--ra-cyan);
  --ro-gold: var(--ra-gold); --ro-text: var(--ra-ink); --ro-muted: var(--ra-muted); --ro-border: var(--ra-border);
  --portal-bg: var(--ra-bg); --portal-surface: var(--ra-surface); --portal-card-inner: var(--ra-soft);
  --portal-text: var(--ra-ink); --portal-muted: var(--ra-muted); --portal-gold: var(--ra-gold);
  --portal-cyan: var(--ra-cyan); --portal-violet: var(--ra-accent); --portal-border: var(--ra-border);
  --vo-canvas: var(--ra-bg); --vo-panel: var(--ra-surface); --vo-panel-alt: var(--ra-raised);
  --vo-text: var(--ra-ink); --vo-muted: var(--ra-muted); --vo-border: var(--ra-border);
  --ph-bg: var(--ra-bg); --ph-card: var(--ra-surface); --ph-alt: var(--ra-soft); --ph-text: var(--ra-ink);
  --ph-muted: var(--ra-muted); --ph-indigo: var(--ra-accent); --ph-indigo-dark: var(--ra-accent); --ph-cyan: var(--ra-cyan); --ph-border: var(--ra-border);
  --cc-bg: var(--ra-bg); --cc-surface: var(--ra-surface); --cc-surface-alt: var(--ra-soft); --cc-text: var(--ra-ink);
  --cc-muted: var(--ra-muted); --cc-indigo: var(--ra-accent); --cc-cyan: var(--ra-cyan); --cc-cyan-text: var(--ra-cyan); --cc-border: var(--ra-border);
  --ref-bg: var(--ra-bg); --ref-surface: var(--ra-surface); --ref-card-inner: var(--ra-soft); --ref-text: var(--ra-ink);
  --ref-muted: var(--ra-muted); --ref-indigo: var(--ra-accent); --ref-indigo-deep: var(--ra-accent); --ref-cyan: var(--ra-cyan); --ref-cyan-ink: var(--ra-cyan); --ref-border: var(--ra-border);
  --bg: var(--ra-bg); --bg-primary: var(--ra-bg); --bg-surface: var(--ra-surface); --bg-elevated: var(--ra-raised);
  --surface: var(--ra-surface); --surface-alt: var(--ra-raised); --card: var(--ra-surface); --panel: var(--ra-surface);
  --ink: var(--ra-ink); --text-primary: var(--ra-ink); --text-secondary: var(--ra-muted); --muted: var(--ra-muted);
  --border: var(--ra-border); --border-subtle: var(--ra-border); --line: var(--ra-border);
  --indigo: var(--ra-accent); --indigo-dark: var(--ra-accent); --cyan: var(--ra-cyan); --cyan-ink: var(--ra-cyan);
  --accent-gold: var(--ra-gold); --accent-cyan: var(--ra-cyan); --gold: var(--ra-gold); --input-bg: var(--ra-soft);
  --ok: var(--ra-ok); --ok-bg: var(--ra-ok-bg); --ok-ink: var(--ra-ok); --danger: var(--ra-danger); --bad: var(--ra-danger);
  --err-bg: var(--ra-danger-bg); --err-ink: var(--ra-danger); --warn: var(--ra-warn); --amber-bg: var(--ra-warn-bg); --amber-ink: var(--ra-warn);
  --kh-ink: var(--ra-ink); --kh-navy: var(--ra-bg); --kh-blue: var(--ra-accent); --kh-cyan: var(--ra-cyan);
  --kh-sky: var(--ra-soft); --kh-paper: var(--ra-surface); --kh-soft: var(--ra-soft); --kh-line: var(--ra-border);
  --kh-muted: var(--ra-muted); --kh-focus: var(--ra-cyan); --kh-shadow: var(--ra-shadow);
  --dp-text: var(--ra-ink); --dp-soft: var(--ra-soft); --dp-soft-2: var(--ra-raised); --dp-white: var(--ra-surface);
  --dp-cyan-700: var(--ra-cyan); --dp-indigo-800: var(--ra-accent); --dp-gold: var(--ra-gold); --dp-green: var(--ra-ok); --dp-red: var(--ra-danger);
  --rog-bg: var(--ra-bg); --rog-card: var(--ra-surface); --rog-soft: var(--ra-soft); --rog-ink: var(--ra-ink); --rog-muted: var(--ra-muted);
  --rog-border: var(--ra-border); --rog-indigo: var(--ra-accent); --rog-indigo-dark: var(--ra-accent); --rog-cyan: var(--ra-cyan);
  --cm-bg: var(--ra-bg); --cm-card: var(--ra-surface); --cm-soft: var(--ra-soft); --cm-ink: var(--ra-ink); --cm-muted: var(--ra-muted);
  --cm-border: var(--ra-border); --cm-indigo: var(--ra-accent); --cm-indigo-dark: var(--ra-accent); --cm-cyan: var(--ra-cyan);
  --rv4-bg: var(--ra-bg); --rv4-surface: var(--ra-surface); --rv4-surface-alt: var(--ra-raised); --rv4-ink: var(--ra-ink); --rv4-ink-body: var(--ra-ink);
  --rv4-muted: var(--ra-muted); --rv4-indigo: var(--ra-accent); --rv4-indigo-strong: var(--ra-accent); --rv4-cyan: var(--ra-cyan); --rv4-cyan-ink: var(--ra-cyan);
  --rv4-border: var(--ra-border); --rv4-good-bg: var(--ra-ok-bg); --rv4-good-ink: var(--ra-ok); --rv4-good-border: var(--ra-ok);
  --rv4-warn-bg: var(--ra-warn-bg); --rv4-warn-ink: var(--ra-warn); --rv4-warn-border: var(--ra-warn); --rv4-shadow: var(--ra-shadow);
  --bg-card: var(--ra-surface); --bg-deep: var(--ra-bg); --text: var(--ra-ink); --blue: var(--ra-accent);
}

html[data-dc-brand="royal-amethyst"] body {
  background: var(--ra-bg) !important; color: var(--ra-ink) !important;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
html[data-dc-brand="royal-amethyst"] :is(h1,h2,h3,h4,h5,h6,label,legend,summary) { color: var(--ra-ink); }
html[data-dc-brand="royal-amethyst"] [hidden] { display: none !important; }
html[data-dc-brand="royal-amethyst"]:where([data-dc-surface="admin"],[data-dc-surface="internal"],[data-dc-surface="auth"]) :where(button) { background: var(--ra-soft) !important; color: var(--ra-ink) !important; border-color: var(--ra-input-border); }
html[data-dc-brand="royal-amethyst"] :is(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--ra-cyan) !important; outline-offset: 3px; }
html[data-dc-brand="royal-amethyst"] ::selection { background: var(--ra-accent); color: var(--ra-on-accent); }
html[data-dc-brand="royal-amethyst"] :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]) {
  background: var(--ra-soft) !important; color: var(--ra-ink) !important; border-color: var(--ra-input-border) !important;
  border-radius: 12px; font-size: max(1rem, 1em);
}
html[data-dc-brand="royal-amethyst"] :is(input,textarea)::placeholder { color: var(--ra-muted); opacity: 1; }
html[data-dc-brand="royal-amethyst"] select option { background: var(--ra-surface); color: var(--ra-ink); }
html[data-dc-brand="royal-amethyst"] :is(input[type="checkbox"],input[type="radio"],input[type="range"]) { accent-color: var(--ra-accent); }
html[data-dc-brand="royal-amethyst"] :is(button,a[role="button"],.btn,.dp-btn,.rog-btn,.ru-btn) { min-height: 44px; }
html[data-dc-brand="royal-amethyst"] :is(button,input,select,textarea):disabled { opacity: .6; cursor: not-allowed; }

/* Existing public page layouts retain their geometry and interaction hooks. */
html[data-dc-brand="royal-amethyst"] :is(.rog-header,header.dp-header,header.ru-top,header.ru-header,header.dcvo-header,.site-head,.top-bar,.ld-header) {
  background: var(--ra-header) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important;
  box-shadow: 0 4px 24px rgb(9 3 17 / 12%);
}
html[data-dc-brand="royal-amethyst"] :is(.rog-topbar,.dp-topbar,.ru-foot,.rog-footer,.dp-footer,.site-footer) { background: var(--ra-soft) !important; color: var(--ra-muted) !important; border-color: var(--ra-border) !important; }
html[data-dc-brand="royal-amethyst"] :is(.rog-nav,.dp-nav,.ru-links,.nav-links,.dcvo-nav,.ld-nav) a { color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] :is(.rog-brand,.dp-brand,.ru-brand,.dcvo-brand,.brand-block) { color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] :is(.rog-hero,.dp-home-hero,.ru-hero,.ld-hero,.dcvo-hero,.dc-subdomain-hero) {
  background: radial-gradient(ellipse at 88% 15%, rgb(170 122 241 / 17%), transparent 58%), var(--ra-bg) !important;
  color: var(--ra-ink) !important; border-color: var(--ra-border) !important;
}
html[data-dc-brand="royal-amethyst"] :is(.rog-hero,.ru-hero,.dp-home-hero,.dcvo-hero,.hero-card) :is(h1,h2,h3,.rog-slide-heading) { color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] :is(.rog-hero h1,.ru-hero h1) { letter-spacing: -.035em; line-height: 1.12; }
html[data-dc-brand="royal-amethyst"] :is(.rog-tia-card,.ru-card,.dp-card,.dc-card,.rog-card,.rog-category-card,.dc-f26-video-card,.hero-card,.card,.faq-item,.ru-form-card,.dc-subdomain-card) {
  background: var(--ra-surface) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important;
  border-radius: var(--ra-radius); box-shadow: var(--ra-shadow);
}
html[data-dc-brand="royal-amethyst"] :is(.rog-tia-caption,.rog-tia-origin,.ru-truth,.ru-links-cloud a,.pill,.ru-badge,.rog-badge,.dp-badge,.brand-badge) {
  background: var(--ra-soft) !important; color: var(--ra-gold) !important; border-color: var(--ra-border) !important;
}
html[data-dc-brand="royal-amethyst"] :is(.ru-card,.dp-card,.rog-card,.rog-category-card,.dc-f26-video-card,.card,.ru-form-card,.hero-card,.ru-faq) :is(h2,h3,h4,label,summary) { color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] :is(.ru-card,.ru-form-card,.ru-faq) :is(p,li) { color: var(--ra-muted); }
html[data-dc-brand="royal-amethyst"] :is(.subtitle,.muted,.ru-lead,.ru-crumbs,.rog-lead,.dp-lead,.rog-category-copy p,.dc-f26-video-copy p) { color: var(--ra-muted) !important; }
html[data-dc-brand="royal-amethyst"] :is(.ru-crumbs a,.ru-foot a,.rog-topbar a,.dp-topbar a,.content a,.article-content a) { color: var(--ra-cyan) !important; }
html[data-dc-brand="royal-amethyst"] :is(.rog-btn-primary,.dp-btn-primary,.ru-btn-primary,.btn-primary,.btn.primary,.ru-cta-call,.rog-btn.rog-btn-solid,.ra-primary) {
  background: var(--ra-accent) !important; color: var(--ra-on-accent) !important; border-color: var(--ra-accent) !important;
  box-shadow: 0 7px 24px rgb(170 122 241 / 16%);
}
html[data-dc-brand="royal-amethyst"] :is(.rog-btn-outline,.dp-btn-outline,.ru-btn-outline,.btn-secondary,.btn.secondary,.dc-theme-toggle-btn,.dc-mobile-menu-toggle,.ra-theme-toggle) {
  background: var(--ra-soft) !important; color: var(--ra-ink) !important; border: 1px solid var(--ra-input-border) !important;
  border-radius: 12px;
}
html[data-dc-brand="royal-amethyst"] :is(.ru-btn-cyan,.rog-btn-cyan) { background: var(--ra-soft) !important; color: var(--ra-cyan) !important; border-color: var(--ra-cyan) !important; }
html[data-dc-brand="royal-amethyst"] [data-f26-tablist] [aria-selected="true"] { background: var(--ra-accent) !important; color: var(--ra-on-accent) !important; }
html[data-dc-brand="royal-amethyst"] :is(.ru-faq details,.dc-f26-panel,.rog-smart-panel,.rog-product-panel,.result-box) { background: var(--ra-surface) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important; }
html[data-dc-brand="royal-amethyst"] .rog-tia-card { border: 1px solid var(--ra-gold); border-radius: 180px 180px 24px 24px; overflow: hidden; }
html[data-dc-brand="royal-amethyst"] img[data-dc-tia-profile] { object-fit: cover; object-position: 82% center; }
html[data-dc-brand="royal-amethyst"] :is(.rog-tia-card,.dc-subdomain-hero) img[data-dc-tia-profile] { width: 100%; height: clamp(260px,32vw,430px); }
html[data-dc-brand="royal-amethyst"] :is(.ru-hero-split,.dcvo-concierge-portrait-frame,.dc-tiya-portrait) img[data-dc-tia-profile] { aspect-ratio: 16/10 !important; width: 100% !important; height: auto !important; object-fit: cover !important; object-position: 96% center !important; }
html[data-dc-brand="royal-amethyst"] .dc-tiya-portrait img[data-dc-tia-profile] { width: 140px !important; flex: 0 0 140px; }
html[data-dc-brand="royal-amethyst"] :is(.rog-category-card,.dc-f26-video-card) img[data-dc-tia-profile] { aspect-ratio: 16/9; width: 100%; height: auto; object-position: 96% center !important; }

/* Smart Intake Forms, Smart Prefill Memory Bar, Trust/Meta Pills & Catalog Reference Light/Dark Parity */
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"] form.dc-intake-card,
html[data-dc-brand="royal-amethyst"] body form.dc-intake-card {
  background: var(--ra-surface) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"] .dc-intake-heading h2,
html[data-dc-brand="royal-amethyst"] body .dc-intake-card :is(h2,h3,label > span) {
  color: var(--ra-ink) !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"] :is(.dc-intake-heading p,.dc-intake-card p,.dc-intake-card label small,.dc-intake-card .dc-intake-consent > span) {
  color: var(--ra-muted) !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"] .dc-intake-kicker { color: var(--ra-gold) !important; }
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"] .dc-intake-card :is(summary,a) { color: var(--ra-cyan) !important; }
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"] .dc-intake-card :is(input:not([type="checkbox"]):not([type="hidden"]),select,textarea) {
  background: var(--ra-soft) !important; color: var(--ra-ink) !important; border: 1px solid var(--ra-input-border) !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"] .dc-intake-card :is(input,textarea)::placeholder {
  color: var(--ra-muted) !important; opacity: 1 !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"] .dc-intake-card button:is([type="submit"],[data-review-request]) {
  background: var(--ra-accent) !important; color: var(--ra-on-accent) !important; border-color: var(--ra-accent) !important;
}
html[data-dc-brand="royal-amethyst"] body .dc-spf-bar {
  background: var(--ra-raised) !important; color: var(--ra-ink) !important; border: 1px solid var(--ra-border) !important;
}
html[data-dc-brand="royal-amethyst"] body .dc-spf-bar :is(label,label > span,span) { color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] body .dc-spf-clear-btn {
  background: var(--ra-soft) !important; color: var(--ra-cyan) !important; border: 1px solid var(--ra-input-border) !important;
}
html[data-dc-brand="royal-amethyst"] :is(.dp-trust-row span,.kh-meta span),
html[data-dc-brand="royal-amethyst"] body.dc-web-v2.dp-v3 .rn-products-hero .dp-trust-row span {
  background: var(--ra-soft) !important; color: var(--ra-ink) !important; border: 1px solid var(--ra-border) !important;
}
html[data-dc-brand="royal-amethyst"] body.dc-web-v2.dp-v3 > header.dp-header {
  background: var(--ra-header) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important;
}
html[data-dc-brand="royal-amethyst"] body.dc-web-v2.dp-v3 :is(.dp-topbar,.dp-category-ribbon,.dc-offer-ticker) {
  background: var(--ra-soft) !important; color: var(--ra-muted) !important; border-color: var(--ra-border) !important;
}
html[data-dc-brand="royal-amethyst"] body.dc-web-v2.dp-v3 :is(.dp-nav a,.rn-nav-more,.rn-nav-more summary,.dp-brand strong) {
  color: var(--ra-ink) !important;
}
html[data-dc-brand="royal-amethyst"] body.dc-web-v2.dp-v3 :is(.dp-card,.dp-faq details,.dp-cta,#online-products,.rn-category-card,.dc-commerce-card,.dc-commerce-status,.rn-guide,.rn-nav-more > div) {
  background: var(--ra-surface) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important;
}
html[data-dc-brand="royal-amethyst"] body.dc-web-v2.dp-v3 :is(.rn-category-controls input,.rn-category-controls button) {
  background: var(--ra-soft) !important; color: var(--ra-ink) !important; border-color: var(--ra-input-border) !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"][data-dc-catalog-reference="true"] {
  background: var(--ra-bg) !important; color: var(--ra-ink) !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"][data-dc-catalog-reference="true"] .dp-header {
  background: var(--ra-header) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"][data-dc-catalog-reference="true"] :is(.dp-category-ribbon,.dp-category-ribbon__inner) {
  background: var(--ra-soft) !important; border-color: var(--ra-border) !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"][data-dc-catalog-reference="true"] :is(.dp-brand strong,.dp-nav a,.dp-category-ribbon a,.dc-catalog-hero h1,.dc-section h2,.dc-card strong) {
  color: var(--ra-ink) !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"][data-dc-catalog-reference="true"] :is(.dp-brand small,.dc-catalog-hero p,.dc-card small,.dc-footer-note) {
  color: var(--ra-muted) !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"][data-dc-catalog-reference="true"] .dp-category-ribbon a:first-child {
  background: var(--ra-accent) !important; color: var(--ra-on-accent) !important;
}
html[data-dc-brand="royal-amethyst"] body[data-dalmia-prime="true"][data-dc-catalog-reference="true"] :is(.dc-catalog-hero,.dc-card,.dc-list li,.dc-truth) {
  background: var(--ra-surface) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important;
}

/* Dense operational shells: no marketing carousels, sticky-header overrides
   or layout resets. Preserve table scrolling, dialogs, counters and filters. */
html[data-dc-brand="royal-amethyst"]:is([data-dc-surface="admin"],[data-dc-surface="internal"],[data-dc-surface="account"]) :is(.sidebar,.topbar,.vo-sidebar,.vo-topbar,.vo-module-hero,.vo-kpi-card,.kpi-card,.wallet-kpi,.modal-content,.panel,.data-table,.card,.hero-card) {
  background: var(--ra-surface) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important;
}
html[data-dc-brand="royal-amethyst"]:is([data-dc-surface="admin"],[data-dc-surface="internal"],[data-dc-surface="account"]) :is(.main-content,.vo-workspace-main,.workspace-main,.content-area) { background: var(--ra-bg) !important; color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"]:is([data-dc-surface="admin"],[data-dc-surface="internal"],[data-dc-surface="account"]) :is(th,td,.topbar h1,.sidebar a,.vo-sidebar a,.nav-item,.metric-value) { color: var(--ra-ink); border-color: var(--ra-border); }
html[data-dc-brand="royal-amethyst"] :is(table,.data-table) { color: var(--ra-ink); border-color: var(--ra-border); }
html[data-dc-brand="royal-amethyst"] :is(thead,th) { background: var(--ra-raised) !important; color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] :is(.table-wrap,.table-responsive) { overflow-x: auto; overscroll-behavior-inline: contain; }
html[data-dc-brand="royal-amethyst"] :is(.modal,.dialog,[role="dialog"]) { color: var(--ra-ink); }
html[data-dc-brand="royal-amethyst"] :is(.sidebar a.active,.nav-item.active,.vo-sidebar [aria-current="page"]) { background: var(--ra-raised) !important; color: var(--ra-accent) !important; border-color: var(--ra-gold) !important; }
html[data-dc-brand="royal-amethyst"] :is(.badge-success,.status-success,.alert-success) { background: var(--ra-ok-bg) !important; color: var(--ra-ok) !important; }
html[data-dc-brand="royal-amethyst"] :is(.badge-danger,.status-error,.alert-danger,.alert-error) { background: var(--ra-danger-bg) !important; color: var(--ra-danger) !important; }
html[data-dc-brand="royal-amethyst"] :is(.badge-warning,.status-warning,.alert-warning) { background: var(--ra-warn-bg) !important; color: var(--ra-warn) !important; }
html[data-dc-brand="royal-amethyst"] :is(.btn-danger,.danger-button) { background: var(--ra-danger-bg) !important; color: var(--ra-danger) !important; border-color: var(--ra-danger) !important; }
html[data-dc-brand="royal-amethyst"] :is(.kpi-value,.brand-name,.user-name,.timeline-content strong) { color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] :is(.kpi-label,.kpi-sub,.page-info,.timestamp,.login-hint,.timeline-meta,.timeline-note,.text-muted) { color: var(--ra-muted) !important; }
html[data-dc-brand="royal-amethyst"] :is(.login-page,.login-box,.form-card) { background: var(--ra-surface) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important; }

/* Knowledge, older Prime pages, catalogue cards and operational orbit pages. */
html[data-dc-brand="royal-amethyst"] :is(.dp-primary,.dc-primary,.ro-btn-primary,.ld-btn-primary,.kh-search button,.kh-tool-form button) { background: var(--ra-accent) !important; color: var(--ra-on-accent) !important; border-color: var(--ra-accent) !important; }
html[data-dc-brand="royal-amethyst"] :is(.dp-secondary,.dc-secondary,.ro-btn-secondary,.ld-btn-secondary,.dp-chip,.ro-check-pill,.variant-link-pill) { background: var(--ra-soft) !important; color: var(--ra-ink) !important; border-color: var(--ra-input-border) !important; }
html[data-dc-brand="royal-amethyst"] :is(.dp-section,.dp-dark,.kh-content-section,.kh-article-body,.kh-article-hero,.dc-catalog-hero,.dp-hero) { background: var(--ra-bg) !important; color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] :is(.kh-inline-card,.kh-feature-card,.kh-toc,.kh-callout,.kh-answer,.kh-tool,.kh-tool-results article,.kh-related-grid a,.kh-search > div,.ro-card,.ld-panel,.dc-truth) { background: var(--ra-surface) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important; }
html[data-dc-brand="royal-amethyst"] :is(.kh-article,.kh-content-section,.dp-section,.dp-hero,.dc-catalog-hero,.dc-card,.ro-card,.ld-panel) :is(h1,h2,h3,h4,summary) { color: var(--ra-ink) !important; -webkit-text-fill-color: var(--ra-ink); }
html[data-dc-brand="royal-amethyst"] :is(.kh-dek,.kh-meta,.kh-breadcrumbs,.kh-content-section p,.kh-content-section li,.dp-card p,.dc-card p,.ro-card p,.ld-panel p) { color: var(--ra-muted) !important; }
html[data-dc-brand="royal-amethyst"] :is(.kh-eyebrow,.kh-section-head > span,.dp-eyebrow,.dc-kicker,.ld-eyebrow) { color: var(--ra-gold) !important; }
html[data-dc-brand="royal-amethyst"] :is(.kh-content-section a,.kh-toc a,.kh-breadcrumbs a) { color: var(--ra-cyan) !important; }
html[data-dc-brand="royal-amethyst"] .kh-hub-hero { background: radial-gradient(ellipse at 85% 25%,rgb(170 122 241 / 24%),transparent 55%),var(--ra-bg) !important; }
html[data-dc-brand="royal-amethyst"] .kh-hub-hero :is(h1,p,label) { color: var(--ra-ink) !important; -webkit-text-fill-color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] .kh-table-wrap { overflow-x: auto; }
html[data-dc-brand="royal-amethyst"] :is(.kh-hub-section-alt,.kh-ask,.kh-search-results,.kh-intent-grid a,.kh-table-wrap) { background: var(--ra-surface) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important; }
html[data-dc-brand="royal-amethyst"] :is(.kh-related-grid,.kh-feature-card,.kh-intent-grid,.kh-toc,.kh-ask,.kh-search-results,.kh-tool-results) :is(strong,h2,h3,h4) { color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] :is(.kh-related-grid,.kh-feature-card,.kh-intent-grid,.kh-toc,.kh-ask,.kh-search-results,.kh-tool-results) :is(small,p,span) { color: var(--ra-muted) !important; }
html[data-dc-brand="royal-amethyst"] .ra-newpage { width: min(1100px,calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
html[data-dc-brand="royal-amethyst"] .ra-newpage :is(section,article) { margin: 24px 0; }
html[data-dc-brand="royal-amethyst"] .ra-newpage h1 { font-size: clamp(2rem,5vw,3.3rem); line-height: 1.14; }
html[data-dc-brand="royal-amethyst"] .ra-newpage a { color: var(--ra-cyan); }
html[data-dc-brand="royal-amethyst"] .ra-newpage .ra-guide-hero { width: 100%; height: auto; border: 1px solid var(--ra-gold); border-radius: 24px; }
html[data-dc-brand="royal-amethyst"] :is(.kh-table-wrap td,.kh-table-wrap td p) { color: var(--ra-muted) !important; }
html[data-dc-brand="royal-amethyst"] :is(.kh-table-wrap a,.kh-sources a,.kh-answer span) { color: var(--ra-cyan) !important; }
html[data-dc-brand="royal-amethyst"] :is(.kh-editorial-method h2,.kh-article-hero h1) { color: var(--ra-ink) !important; -webkit-text-fill-color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] body.kh-page:is(.dalmia-prime,[data-dalmia-prime="true"]) :is(.kh-editorial,.kh-editorial-method) :is(p,summary,details) { color: var(--ra-muted) !important; -webkit-text-fill-color: var(--ra-muted) !important; }
html[data-dc-brand="royal-amethyst"] body.kh-page:is(.dalmia-prime,[data-dalmia-prime="true"]) :is(.kh-editorial,.kh-editorial-method) :is(a,strong,.kh-eyebrow) { color: var(--ra-cyan) !important; -webkit-text-fill-color: var(--ra-cyan) !important; }
html[data-dc-brand="royal-amethyst"] :is(.rog-hero-card,.rog-panel,.rog-staff-card,.login-shell,.signin-confirm,.note,.cm-hero,.cm-card,.rv4-card) { background: var(--ra-surface) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important; }
html[data-dc-brand="royal-amethyst"][data-dc-surface="auth"] body > header { background: var(--ra-header) !important; color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] :is(.rog-brand strong,.rog-brand small,.cm-hero h1,.rv4-title) { color: var(--ra-ink) !important; }
html[data-dc-brand="royal-amethyst"] :is(.dc-table td,.dc-table th) { background: var(--ra-surface) !important; color: var(--ra-ink) !important; border-color: var(--ra-border) !important; }
html[data-dc-brand="royal-amethyst"] :is(button.primary,.cm-btn-primary,.rv4-btn.primary,.dc-auth-tab[aria-selected="true"]) { background: var(--ra-accent) !important; color: var(--ra-on-accent) !important; border-color: var(--ra-accent) !important; }

/* A normal-flow signature preserves the phone on every complete UI document. */
html[data-dc-brand="royal-amethyst"] .ra-brand-support {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom,0px));
  background: var(--ra-soft); color: var(--ra-muted); border-top: 1px solid var(--ra-border);
  font-size: .9rem; position: relative; z-index: 1;
}
html[data-dc-brand="royal-amethyst"] .ra-brand-support img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }
html[data-dc-brand="royal-amethyst"] .ra-brand-support a { color: var(--ra-cyan); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
html[data-dc-brand="royal-amethyst"] .ra-theme-toggle { padding: 8px 14px; cursor: pointer; }
html[data-dc-brand="royal-amethyst"] .ra-brand-support .ra-tia-signature { width: 56px; height: 56px; object-fit: cover; object-position: 82% center; border-radius: 50%; border: 1px solid var(--ra-gold); }

@media (max-width: 760px) {
  html[data-dc-brand="royal-amethyst"] :is(.rog-hero-grid,.ru-hero-split) { grid-template-columns: minmax(0,1fr); }
  html[data-dc-brand="royal-amethyst"] :is(.ru-grid,.ru-form-grid) { grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); }
  html[data-dc-brand="royal-amethyst"] .rog-tia-card { border-radius: 100px 100px 20px 20px; }
  html[data-dc-brand="royal-amethyst"] :is(.rog-tia-card,.dc-subdomain-hero) img[data-dc-tia-profile] { height: 280px; object-position: 83% center; }
  html[data-dc-brand="royal-amethyst"] :is(.rog-header,.dp-header,.ru-top).is-drawer-open :is(nav,.rog-nav,.dp-nav,.ru-links) { background: var(--ra-surface) !important; color: var(--ra-ink) !important; }
  html[data-dc-brand="royal-amethyst"] :is(.rog-header-inner,.dp-header-actions,.ru-header-actions) { min-width: 0; }
  html[data-dc-brand="royal-amethyst"] body.dp-v3 .dp-header-actions { display: inline-flex !important; align-items: center; gap: 8px; width: auto; margin-left: auto; }
  html[data-dc-brand="royal-amethyst"] body.dp-v3:not(.dc-web-v2) .dp-header-actions > :not([data-dc-theme-toggle]):not(#dc-theme-toggle) { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-dc-brand="royal-amethyst"] { scroll-behavior: auto; }
  html[data-dc-brand="royal-amethyst"] :is(.rog-tia-card,.ra-brand-support,.rog-btn,.ru-btn) { transition: none; animation: none; }
}
@media (forced-colors: active) {
  html[data-dc-brand="royal-amethyst"] :is(button,input,select,textarea,.card,.ru-card) { border: 1px solid ButtonText !important; }
}
@media print {
  html[data-dc-brand="royal-amethyst"], html[data-dc-brand="royal-amethyst"] body {
    color-scheme: light; --ra-bg: #FFF; --ra-surface: #FFF; --ra-raised: #F4F1F7; --ra-soft: #FFF;
    --ra-ink: #111; --ra-muted: #333; --ra-accent: #49226F; --ra-gold: #614615; --ra-cyan: #164D5B; --ra-border: #999;
    background: #FFF !important; color: #111 !important;
  }
  html[data-dc-brand="royal-amethyst"] :is(.ra-brand-support,.dc-theme-toggle-btn,.ra-theme-toggle) { display: none !important; }
  html[data-dc-brand="royal-amethyst"] :is(.card,.ru-card,.hero-card) { box-shadow: none; }
}
