/*
 * Note Pad's look on the web (approved popup mockup F2, 5 November 2026):
 * white, the system font, airy, one indigo accent, no decoration.
 * One set of tokens for every Note Pad page on this site: the uninstall page
 * and the landing page at simplenotepad.app. They follow the system theme, as
 * the extension does by default ("Same as system").
 *
 * A plain stylesheet, not a CSS module: Note Pad's components render it as a
 * React stylesheet resource (<link rel="stylesheet" precedence>), so it loads
 * only on Note Pad's pages. A CSS module imported by the shared uninstall
 * route would be bundled into every extension's uninstall page.
 */

.np-look {
  --np-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --np-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
  --np-bg: #ffffff;
  --np-bg-alt: #f5f5f7;
  --np-raised: #ffffff;           /* cards and groups on the alternate ground */
  --np-ink: #1d1d1f;
  --np-ink-2: #424245;
  --np-muted: #6e6e73;            /* 5.07:1 on white, 4.66:1 on #f5f5f7 */
  --np-quiet: #8e8e93;
  --np-fill: #efeff0;
  --np-fill-press: #e3e3e6;
  --np-hover: rgba(118, 118, 128, .12);
  --np-hair: rgba(60, 60, 67, .14);
  --np-line: rgba(0, 0, 0, .10);
  --np-ring: #8e8e93;
  --np-group-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --np-float-shadow: 0 18px 50px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06), 0 0 0 .5px rgba(0, 0, 0, .08);
  --np-accent: #5856d6;           /* fills: white on it 5.65:1 */
  --np-accent-hover: #4d4bc9;
  --np-accent-press: #4442b8;
  --np-on-accent: #ffffff;
  --np-accent-text: #4b49c7;      /* links and small text: 6.83:1 on white */
  --np-accent-tint: rgba(88, 86, 214, .12);
  --np-focus: #5856d6;
  --np-danger: #c4001a;
  --np-select: rgba(88, 86, 214, .20);

  font-family: var(--np-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  .np-look {
    color-scheme: dark;
    --np-bg: #000000;
    --np-bg-alt: #161617;
    --np-raised: #1c1c1e;
    --np-ink: #f5f5f7;
    --np-ink-2: #d2d2d7;
    --np-muted: #a1a1a6;          /* 7.6:1 on #000, 6.6:1 on #1c1c1e */
    --np-quiet: #7c7c80;
    --np-fill: #2c2c2e;
    --np-fill-press: #3a3a3c;
    --np-hover: rgba(118, 118, 128, .24);
    --np-hair: rgba(84, 84, 88, .55);
    --np-line: rgba(255, 255, 255, .12);
    --np-ring: #8e8e93;
    --np-group-shadow: 0 0 0 .5px rgba(255, 255, 255, .08);
    --np-float-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .10);
    --np-accent: #5e5ce6;         /* white on it 5.06:1 */
    --np-accent-hover: #6d6bf0;
    --np-accent-press: #5452d6;
    --np-accent-text: #9c9aff;    /* 7.9:1 on #000, 6.87:1 on #1c1c1e */
    --np-accent-tint: rgba(94, 92, 230, .28);
    --np-focus: #9c9aff;
    --np-danger: #ff6961;
    --np-select: rgba(124, 122, 255, .32);
  }
}

/* The landing page sets .np-look on <html>: the whole canvas follows the theme. */
html.np-look, html.np-look body { background: var(--np-bg); }

.np-look ::selection { background: var(--np-select); color: inherit; }
