/* Peel design tokens — modelled on macOS 26 conventions (13pt body, SF type, Liquid Glass materials) */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #aeaeb2;
  --sep: rgba(0, 0, 0, .09);
  --hover: rgba(0, 0, 0, .05);
  --accent: #0088ff;
  --accent-soft: rgba(0, 136, 255, .13);
  --red: #ff3b30; --orange: #ff9500; --green: #34c759; --purple: #af52de; --teal: #30b0c7;

  --window: rgba(248, 248, 250, .86);
  --window-solid: #f7f7f9;
  --sidebar: rgba(236, 236, 241, .55);
  --field: rgba(0, 0, 0, .05);
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .7);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1px 0 rgba(0, 0, 0, .03);
  --shadow-win: 0 0 0 .5px rgba(0, 0, 0, .14), 0 24px 70px rgba(0, 0, 0, .28), 0 6px 18px rgba(0, 0, 0, .12);
  --shadow-pop: 0 0 0 .5px rgba(0, 0, 0, .12), 0 12px 40px rgba(0, 0, 0, .22);

  /* sticky palette: bg / bar / ink */
  --lemon: #ffeb94;  --lemon-bar: #f9de6b;  --lemon-ink: #3b3210;
  --peach: #ffd5b8;  --peach-bar: #fdc39f;  --peach-ink: #4a2914;
  --mint: #ccf1d9;   --mint-bar: #b3e7c5;   --mint-ink: #163d26;
  --sky: #d3e8ff;    --sky-bar: #badaff;    --sky-ink: #12314f;
  --lilac: #e6dbff;  --lilac-bar: #d5c6fd;  --lilac-ink: #2e2050;
  --graphite: #3b3b40; --graphite-bar: #313135; --graphite-ink: #f2f2f4;
}

:root[data-theme="dark"] {
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #636366;
  --sep: rgba(255, 255, 255, .1);
  --hover: rgba(255, 255, 255, .07);
  --accent: #0091ff;
  --accent-soft: rgba(0, 145, 255, .22);
  --red: #ff453a; --orange: #ff9f0a; --green: #30d158; --purple: #bf5af2; --teal: #40c8e0;

  --window: rgba(32, 32, 35, .86);
  --window-solid: #1e1e21;
  --sidebar: rgba(46, 46, 52, .5);
  --field: rgba(255, 255, 255, .07);
  --glass: rgba(44, 44, 50, .55);
  --glass-strong: rgba(44, 44, 50, .8);
  --glass-edge: rgba(255, 255, 255, .14);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 0 rgba(0, 0, 0, .2);
  --shadow-win: 0 0 0 .5px rgba(255, 255, 255, .12), 0 24px 70px rgba(0, 0, 0, .55), 0 6px 18px rgba(0, 0, 0, .3);
  --shadow-pop: 0 0 0 .5px rgba(255, 255, 255, .12), 0 12px 40px rgba(0, 0, 0, .5);
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: .5px solid var(--glass-edge);
  box-shadow: var(--glass-hi), var(--shadow-pop);
}

.peel-icon {
  position: relative; border-radius: 23%; overflow: hidden;
  background: linear-gradient(150deg, #fff19a 0%, #ffd84a 55%, #f5b82e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 6px rgba(0, 0, 0, .18);
}
.peel-icon::before { /* ruled lines */
  content: ""; position: absolute; left: 20%; right: 30%; top: 28%; height: 36%;
  background: repeating-linear-gradient(to bottom, rgba(110, 80, 10, .38) 0 2px, transparent 2px 22%);
  border-radius: 2px;
}
.peel-icon::after { /* peeled corner */
  content: ""; position: absolute; right: 0; bottom: 0; width: 42%; height: 42%;
  background: linear-gradient(135deg, #fffbe6 0%, #f6e4a6 48%, #c98a10 49%, #b8790a 100%);
  border-top-left-radius: 22%;
  box-shadow: -2px -2px 5px rgba(120, 80, 0, .25);
}
