/* Account View Mobile tokens. The only root Account View file allowed to hold raw values.
   Brand: Joe's "Decimal blue" palette (from/fromJoe/styles.css, brand.js). Fonts: Joe's pairing for Decimal Mobile,
   SF Pro (Apple system font) for iOS, Roboto for Android.
   iOS values approximate the iOS 26 system colors; Android values are Material 3 roles from a Decimal blue seed. */
:root {
  --font-ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", sans-serif;
  --font-android: "Roboto", "Roboto Flex", "Helvetica Neue", Arial, sans-serif;
  --font-decimal: "Asta Sans", system-ui, sans-serif;
  --font-decimal-display: "Libre Caslon Text", Georgia, serif;
  --font-decimal-logo: "Roboto Condensed", "Arial Narrow", sans-serif;

  /* Review page */
  --page-bg: #f1f7ff;
  --page-surface: #ffffff;
  --page-surface-muted: #f6f7f9;
  --page-text: #292b2e;
  --page-text-strong: #131313;
  --page-muted: #5c6270;
  --page-border: #e2e3e7;
  --page-brand: #1d5fe2;
  --page-brand-subtle: #e4ecfb;
  --page-shadow: 0 1px 2px rgba(19, 19, 19, 0.086), 0 4px 12px rgba(19, 19, 19, 0.058);
  --tier-common-bg: #e1faf2;
  --tier-common-fg: #1d705a;
  --tier-platform-bg: #e4ecfb;
  --tier-platform-fg: #1d4fb8;
  --tier-discuss-bg: #fff0dc;
  --tier-discuss-fg: #8a4500;

  /* Brand */
  --brand: #1d5fe2;
  --brand-on: #ffffff;
  --white: #ffffff;
  --black: #000000;

  /* LPL Financial concept (prototype reference from Style Guide — LPL Control) */
  --lpl-blue: #06163a;
  --lpl-copper: #be5500;
  --lpl-sand: #f7f1ed;
  --lpl-light-sand: #fefaf8;
  --lpl-light-blue: #00aed3;
  --lpl-grey: #757982;
  --lpl-border: #d0d1db;

  /* iOS 26 */
  --ios-bg: #f2f2f7;
  --ios-surface: #ffffff;
  --ios-label: #000000;
  --ios-label2: rgba(60, 60, 67, 0.6);
  --ios-label3: rgba(60, 60, 67, 0.3);
  --ios-sep: rgba(60, 60, 67, 0.18);
  --ios-fill: rgba(120, 120, 128, 0.16);
  --ios-tint: #1d5fe2;
  --ios-tint-subtle: rgba(29, 95, 226, 0.12);
  --ios-green: #34c759;
  --ios-green-subtle: rgba(52, 199, 89, 0.14);
  --ios-red: #ff3b30;
  --ios-red-subtle: rgba(255, 59, 48, 0.12);
  --ios-glass: rgba(255, 255, 255, 0.66);
  --ios-glass-border: rgba(255, 255, 255, 0.85);
  --ios-glass-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --ios-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  --ios-scrim: rgba(0, 0, 0, 0.22);
  --ios-switch-off: rgba(120, 120, 128, 0.18);
  --ios-key-bg: #d1d4db;
  --ios-key: #ffffff;
  --ios-inverse: rgba(30, 30, 32, 0.86);
  --ios-on-inverse: #ffffff;

  /* Android, Material 3 Expressive roles */
  --md-primary: #1d5fe2;
  --md-on-primary: #ffffff;
  --md-primary-container: #dae2ff;
  --md-on-primary-container: #001946;
  --md-secondary-container: #dce2f9;
  --md-on-secondary-container: #141b2c;
  --md-surface: #faf8ff;
  --md-surface-low: #f4f3fa;
  --md-surface-container: #eeedf4;
  --md-surface-high: #e8e7ef;
  --md-surface-highest: #e2e2e9;
  --md-on-surface: #1a1b21;
  --md-on-surface-variant: #44464f;
  --md-outline: #757780;
  --md-outline-variant: #c5c6d0;
  --md-inverse-surface: #2f3036;
  --md-inverse-on-surface: #f1f0f7;
  --md-inverse-primary: #b2c5ff;
  --md-error: #ba1a1a;
  --md-on-error: #ffffff;
  --md-error-container: #ffdad6;
  --md-success: #1b6d3c;
  --md-success-container: #b6f2c4;
  --md-scrim: rgba(0, 0, 0, 0.32);
  --md-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.3);

  /* Decimal Mobile (Joe's Account View web palette) */
  --dm-page: #f1f7ff;
  --dm-surface: #ffffff;
  --dm-muted: #f6f7f9;
  --dm-text: #292b2e;
  --dm-strong: #131313;
  --dm-text2: #5c6270;
  --dm-border: #e2e3e7;
  --dm-control: #bbbec5;
  --dm-brand: #1d5fe2;
  --dm-link: #1d5fe2;
  --dm-brand-subtle: #e4ecfb;
  --dm-logo: #10285a;
  --dm-success: #138450;
  --dm-success-bg: #e1faf2;
  --dm-danger: #b20000;
  --dm-danger-bg: #ffe0e0;
  --dm-on-status: #ffffff;
  --dm-card: rgba(255, 255, 255, 0.86);
  --dm-shadow: 0 8px 32px rgba(16, 40, 90, 0.102), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --dm-scrim: rgba(16, 40, 90, 0.42);
  --dm-inverse: #1d1e20;
  --dm-on-inverse: #ffffff;
}

:root[data-mode="dark"] {
  --page-bg: #0f1419;
  --page-surface: #1a2129;
  --page-surface-muted: #232b35;
  --page-text: #e2e5ea;
  --page-text-strong: #f5f6f8;
  --page-muted: #9aa3b2;
  --page-border: #3a4450;
  --page-brand: #6b9fff;
  --page-brand-subtle: rgba(107, 159, 255, 0.14);
  --page-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  --tier-common-bg: rgba(61, 214, 140, 0.14);
  --tier-common-fg: #6fe3a8;
  --tier-platform-bg: rgba(107, 159, 255, 0.16);
  --tier-platform-fg: #9dbdff;
  --tier-discuss-bg: rgba(255, 170, 80, 0.16);
  --tier-discuss-fg: #ffc27a;

  --brand: #3d7ef5;
  --brand-on: #ffffff;
  --white: #ffffff;
  --black: #000000;

  /* The concept remains on LPL's light Sand surface while the documentation page is dark. */
  --lpl-blue: #06163a;
  --lpl-copper: #be5500;
  --lpl-sand: #f7f1ed;
  --lpl-light-sand: #fefaf8;
  --lpl-light-blue: #00aed3;
  --lpl-grey: #757982;
  --lpl-border: #d0d1db;

  --ios-bg: #000000;
  --ios-surface: #1c1c1e;
  --ios-label: #ffffff;
  --ios-label2: rgba(235, 235, 245, 0.6);
  --ios-label3: rgba(235, 235, 245, 0.3);
  --ios-sep: rgba(84, 84, 88, 0.6);
  --ios-fill: rgba(120, 120, 128, 0.32);
  --ios-tint: #3d7ef5;
  --ios-tint-subtle: rgba(61, 126, 245, 0.22);
  --ios-green: #30d158;
  --ios-green-subtle: rgba(48, 209, 88, 0.18);
  --ios-red: #ff453a;
  --ios-red-subtle: rgba(255, 69, 58, 0.18);
  --ios-glass: rgba(44, 44, 46, 0.62);
  --ios-glass-border: rgba(255, 255, 255, 0.14);
  --ios-glass-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --ios-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  --ios-scrim: rgba(0, 0, 0, 0.48);
  --ios-switch-off: rgba(120, 120, 128, 0.36);
  --ios-key-bg: #2b2b2d;
  --ios-key: #6b6b6e;
  --ios-inverse: rgba(235, 235, 245, 0.9);
  --ios-on-inverse: #000000;

  --md-primary: #b2c5ff;
  --md-on-primary: #002b75;
  --md-primary-container: #0f45a8;
  --md-on-primary-container: #dae2ff;
  --md-secondary-container: #3f4759;
  --md-on-secondary-container: #dce2f9;
  --md-surface: #121318;
  --md-surface-low: #1a1b21;
  --md-surface-container: #1e1f25;
  --md-surface-high: #292a2f;
  --md-surface-highest: #34343a;
  --md-on-surface: #e3e1e9;
  --md-on-surface-variant: #c5c6d0;
  --md-outline: #8f9099;
  --md-outline-variant: #44464f;
  --md-inverse-surface: #e3e1e9;
  --md-inverse-on-surface: #2f3036;
  --md-inverse-primary: #1d5fe2;
  --md-error: #ffb4ab;
  --md-on-error: #690005;
  --md-error-container: #93000a;
  --md-success: #8bd8a0;
  --md-success-container: #00522a;
  --md-scrim: rgba(0, 0, 0, 0.5);
  --md-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.6);

  --dm-page: #0f1419;
  --dm-surface: #1a2129;
  --dm-muted: #232b35;
  --dm-text: #e2e5ea;
  --dm-strong: #f5f6f8;
  --dm-text2: #9aa3b2;
  --dm-border: #3a4450;
  --dm-control: #5c6672;
  --dm-brand: #1d5fe2;
  --dm-link: #6b9fff;
  --dm-brand-subtle: rgba(107, 159, 255, 0.14);
  --dm-logo: #f5f6f8;
  --dm-success: #3dd68c;
  --dm-success-bg: rgba(61, 214, 140, 0.12);
  --dm-danger: #ff9a9a;
  --dm-danger-bg: rgba(255, 154, 154, 0.14);
  --dm-on-status: #0f1419;
  --dm-card: rgba(26, 33, 41, 0.92);
  --dm-shadow: 0 8px 32px rgba(0, 0, 0, 0.648), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --dm-scrim: rgba(0, 0, 0, 0.58);
  --dm-inverse: #e2e5ea;
  --dm-on-inverse: #0f1419;
}

/* Decimal design system, ClientWorks profile (team-decisions.html opts in with data-brand="decimal").
   Every value is a Decimal ladder step: base silver, brand sky, success patina, warning copper, danger rust,
   buy emerald, sell ruby. Light and Dark follow the Decimal color profile mode tables in Figma.
   iOS system grays stay Apple's; only the iOS tint follows the brand. */
:root[data-brand="decimal"] {
  /* surface-2, surface-0, surface-1; glyph default, prominent, accent; stroke general accent */
  --page-bg: #f2f3f5;
  --page-surface: #ffffff;
  --page-surface-muted: #f6f7f8;
  --page-text: #2a2a2b;
  --page-text-strong: #131313;
  --page-muted: #636365;
  --page-border: #e2e3e7;
  --page-brand: #0067b5;
  --page-brand-subtle: #daf6fc;
  --page-shadow: 0 1px 2px rgba(19, 19, 19, 0.086), 0 4px 12px rgba(19, 19, 19, 0.058);
  /* feedback fills (10) and glyphs (60) */
  --tier-common-bg: #e1faf2;
  --tier-common-fg: #1a6645;
  --tier-platform-bg: #daf6fc;
  --tier-platform-fg: #024fa1;
  --tier-discuss-bg: #fff3ce;
  --tier-discuss-fg: #b35000;

  /* primary action fill; glyph knockout */
  --brand: #0067b5;
  --brand-on: #ffffff;

  --ios-tint: #0067b5;
  --ios-tint-subtle: rgba(0, 103, 181, 0.12);

  --md-primary: #0067b5;
  --md-on-primary: #ffffff;
  --md-primary-container: #daf6fc;
  --md-on-primary-container: #00153c;
  --md-secondary-container: #e2e3e7;
  --md-on-secondary-container: #131313;
  --md-surface: #ffffff;
  --md-surface-low: #f6f7f8;
  --md-surface-container: #f2f3f5;
  --md-surface-high: #e2e3e7;
  --md-surface-highest: #e2e3e7;
  --md-on-surface: #131313;
  --md-on-surface-variant: #4a4a4b;
  --md-outline: #828385;
  --md-outline-variant: #e2e3e7;
  --md-inverse-surface: #222223;
  --md-inverse-on-surface: #f6f7f8;
  --md-inverse-primary: #76d6ea;
  --md-error: #b00015;
  --md-on-error: #ffffff;
  --md-error-container: #ffe8e5;
  --md-success: #1a6645;
  --md-success-container: #e1faf2;
  --md-scrim: rgba(0, 0, 0, 0.32);
  --md-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.3);

  /* AV Branded mockups */
  --dm-page: #f2f3f5;
  --dm-surface: #ffffff;
  --dm-muted: #f6f7f8;
  --dm-text: #2a2a2b;
  --dm-strong: #131313;
  --dm-text2: #636365;
  --dm-border: #e2e3e7;
  --dm-control: #636365;
  --dm-brand: #0067b5;
  --dm-link: #0067b5;
  --dm-brand-subtle: #daf6fc;
  --dm-logo: #00205b;
  --dm-success: #1a6645;
  --dm-success-bg: #e1faf2;
  --dm-danger: #b00015;
  --dm-danger-bg: #ffe8e5;
  --dm-on-status: #ffffff;
  --dm-buy: #25780a;
  --dm-sell: #c7007e;
  --dm-on-trade: #ffffff;
  --dm-card: rgba(255, 255, 255, 0.86);
  --dm-shadow: 0 8px 32px rgba(0, 32, 91, 0.102), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --dm-scrim: rgba(0, 32, 91, 0.42);
  --dm-inverse: #222223;
  --dm-on-inverse: #ffffff;
}

:root[data-brand="decimal"][data-mode="dark"] {
  --page-bg: #131313;
  --page-surface: #222223;
  --page-surface-muted: #2a2a2b;
  --page-text: #f6f7f8;
  --page-text-strong: #ffffff;
  --page-muted: #b4b5b8;
  --page-border: #2a2a2b;
  --page-brand: #76d6ea;
  --page-brand-subtle: #2a2a2b;
  --page-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  /* Decimal Dark feedback fills are all silver 100; glyphs step to 30 */
  --tier-common-bg: #131313;
  --tier-common-fg: #40c1ac;
  --tier-platform-bg: #131313;
  --tier-platform-fg: #76d6ea;
  --tier-discuss-bg: #131313;
  --tier-discuss-fg: #fdb714;

  --brand: #76d6ea;
  --brand-on: #000000;

  --ios-tint: #76d6ea;
  --ios-tint-subtle: rgba(118, 214, 234, 0.22);

  --md-primary: #76d6ea;
  --md-on-primary: #000000;
  --md-primary-container: #003b79;
  --md-on-primary-container: #daf6fc;
  --md-secondary-container: #3e3e3f;
  --md-on-secondary-container: #f6f7f8;
  --md-surface: #131313;
  --md-surface-low: #222223;
  --md-surface-container: #2a2a2b;
  --md-surface-high: #3e3e3f;
  --md-surface-highest: #4a4a4b;
  --md-on-surface: #f6f7f8;
  --md-on-surface-variant: #b4b5b8;
  --md-outline: #828385;
  --md-outline-variant: #4a4a4b;
  --md-inverse-surface: #e2e3e7;
  --md-inverse-on-surface: #222223;
  --md-inverse-primary: #0067b5;
  --md-error: #ffa199;
  --md-on-error: #000000;
  --md-error-container: #8c0011;
  --md-success: #40c1ac;
  --md-success-container: #00572b;
  --md-scrim: rgba(0, 0, 0, 0.5);
  --md-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.6);

  --dm-page: #131313;
  --dm-surface: #222223;
  --dm-muted: #2a2a2b;
  --dm-text: #f6f7f8;
  --dm-strong: #ffffff;
  --dm-text2: #b4b5b8;
  --dm-border: #2a2a2b;
  --dm-control: #636365;
  --dm-brand: #76d6ea;
  --dm-link: #76d6ea;
  --dm-brand-subtle: #2a2a2b;
  --dm-logo: #ffffff;
  --dm-success: #40c1ac;
  --dm-success-bg: #131313;
  --dm-danger: #ffa199;
  --dm-danger-bg: #131313;
  --dm-on-status: #000000;
  --dm-buy: #83cd6a;
  --dm-sell: #ff99d5;
  --dm-on-trade: #000000;
  --dm-card: rgba(34, 34, 35, 0.92);
  --dm-shadow: 0 8px 32px rgba(0, 0, 0, 0.648), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --dm-scrim: rgba(0, 0, 0, 0.58);
  --dm-inverse: #ffffff;
  --dm-on-inverse: #000000;
}
