/* Shared colors for the operator interface and account portal. */
:root {
  color-scheme: light;
  --canvas: #f5f5f5;
  --paper: #fff;
  --elevated: var(--paper);
  --surface: #f6f6f6;
  --toolbar: #f7f7f7;
  --sidebar: #ededed;
  --inset: #ededed;
  --ink: #171717;
  --muted: #505050;
  --subtle: #666;
  --line: #dedede;
  --control-line: #868686;
  --control-hover: #e7e7e7;
  --control-active: #dcdcdc;
  --accent: #008443;
  --accent-hover: #00753b;
  --accent-active: #006432;
  --accent-ink: #006b37;
  --focus: var(--accent);
  --on-accent: #fff;
  --tint: #e3f5ea;
  --tint-hover: #d1ecdd;
  --tint-active: #c3e5d3;
  --accent-line: #8dc8a5;
  --selected-control: var(--tint);
  --selected-control-ink: var(--accent-ink);
  --success: #15633b;
  --success-bg: #e7f5ec;
  --attention: #7b4b0d;
  --attention-bg: #fff1dc;
  --danger: #a52235;
  --danger-hover: #8b1427;
  --on-danger: #fff;
  --danger-bg: #fcecee;
  --edge-shadow: 0 1px 3px rgb(0 0 0 / .1);
  --menu-shadow: 0 6px 20px rgb(0 0 0 / .13), 0 1px 4px rgb(0 0 0 / .08);
  --scrim: rgb(0 0 0 / .42);
  --overlay-scrim: rgb(0 0 0 / .16);
  --spotlight: #161616;
}

:root[data-appearance="dark"] {
  color-scheme: dark;
  --canvas: #191919;
  --paper: #222;
  --elevated: #2d2d2d;
  --surface: #262626;
  --toolbar: #202020;
  --sidebar: #1d1d1d;
  --inset: #191919;
  --ink: #ededed;
  --muted: #c8c8c8;
  --subtle: #aaa;
  --line: #3d3d3d;
  --control-line: #858585;
  --control-hover: #333;
  --control-active: #3d3d3d;
  --accent: #07c160;
  --accent-hover: #2bd174;
  --accent-active: #00aa53;
  --accent-ink: #6cdb9c;
  --focus: #78e4a8;
  --on-accent: #102219;
  --tint: #23392c;
  --tint-hover: #214430;
  --tint-active: #1f4c33;
  --accent-line: #4b805d;
  --success: #abe4a5;
  --success-bg: #304731;
  --attention: #f3d09a;
  --attention-bg: #4a3d2c;
  --danger: #f4adae;
  --danger-hover: #ffc3c3;
  --on-danger: #361c1e;
  --danger-bg: #503537;
  --edge-shadow: 0 1px 3px rgb(0 0 0 / .23);
  --menu-shadow: 0 6px 20px rgb(0 0 0 / .38), 0 1px 4px rgb(0 0 0 / .24);
  --scrim: rgb(0 0 0 / .55);
  --overlay-scrim: rgb(0 0 0 / .28);
  --spotlight: #3b3b3b;
}

@media (prefers-contrast: more) {
  :root[data-appearance] {
    --ink: #101010;
    --muted: #383838;
    --subtle: var(--muted);
    --line: #858585;
    --control-line: #666;
    --accent: #006b36;
    --accent-hover: #00552b;
    --accent-active: #004624;
    --accent-ink: #00552b;
    --tint: #d9f0e1;
    --tint-hover: #c8e5d3;
    --tint-active: #bbddc9;
    --accent-line: #3b7951;
    --success: #0c542f;
    --attention: #633b06;
    --danger: #861229;
    --danger-hover: #710b20;
  }

  :root[data-appearance="dark"] {
    --ink: #fff;
    --muted: #e5e5e5;
    --line: #9b9b9b;
    --control-line: #b5b5b5;
    --accent: #4cdd8a;
    --accent-hover: #61e598;
    --accent-active: #36c875;
    --accent-ink: #acebc5;
    --focus: #baefd0;
    --tint: #314b3a;
    --tint-hover: #335740;
    --tint-active: #355f45;
    --accent-line: #9bd6b2;
    --success: #c1f8b8;
    --attention: #ffe5b9;
    --danger: #ffc7c8;
    --danger-hover: #ffd9da;
  }
}

:root[data-appearance="light"] ::selection {
  background: var(--tint);
  color: var(--accent-ink);
}

:root[data-appearance="dark"] ::selection {
  background: var(--accent);
  color: var(--on-accent);
}
