/*
 * Shared tokens for the panel and the preferences window. theme.js swaps the palette variables
 * (dark / light) to match AE's brightness; it never derives colors from AE's own background.
 * --o is read by mark.js. Keep it encoded.
 */
:root {
  --panel: #1e1e20;
  --raised: #2a2a2d;
  --well: #151517;
  --deep: #19191b;
  --line: #3a3a3e;
  --line-soft: #2e2e31;
  --text: #f2f2f4;
  --dim: #98989d;
  --faint: #6e6e73;
  --icon: #a9a9b0;
  --hover: rgba(255, 255, 255, 0.07);
  --press: rgba(255, 255, 255, 0.11);
  --on: #2f2f33;
  /* Coral to amber, straight off the logo (brand/nullify-mark.svg). The panel used to inherit
     Tether's violet and teal, which made the two plugins look like the same product. */
  --accent: #ff7a59;
  --accent-rgb: 255, 122, 89;
  --accent-2: #ffc15e;
  --accent-2-rgb: 255, 193, 94;
  /* A deeper true red than the old #ff6b63: that was almost exactly the coral accent, so a
     failure pill and a normal one looked the same at a glance. */
  --error: #e5484d;
  --shadow: rgba(0, 0, 0, 0.35);
  --o: "\73\74\75\64\69\6f\2e\74\75\65";
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--panel);
  color: var(--text);
  font: 12px/1.4 var(--font);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

svg.i {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  flex: none;
}

:focus-visible { outline: 2px solid rgba(var(--accent-rgb), 0.7); outline-offset: 1px; }

/* Segmented control, used by the panel's scope and the preferences switches. */
.seg {
  display: flex;
  flex: none;
  background: var(--well);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.seg button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] {
  background: var(--on);
  color: var(--text);
  box-shadow: 0 1px 2px var(--shadow);
}

/* The maker's mark slots. mark.js fills them. */
.mark { font-family: var(--mono); color: var(--faint); letter-spacing: 0.02em; white-space: nowrap; }
