/* Unicorn Works · shared look for every app (Home, Paper, Sheets, PDF, Slides, Notes).
   Themes: unicorn (default, light pastel), galaxy (dark), pastel (soft light), midnight (high-contrast dark).
   Every app uses these variables, so one theme switch changes the whole suite. */
:root, [data-theme="unicorn"] {
  --bg: #f7f3ff; --bg-2: #efe8ff; --surface: #ffffff; --surface-2: #f6f1ff; --sidebar: #2a1a5e; --sidebar-text: #efe9ff; --sidebar-muted: #b9aee0;
  --text: #24163f; --muted: #6c5f8a; --line: #e4daf7; --accent: #8b5cf6; --accent-2: #ec4899; --accent-3: #06b6d4; --accent-ink: #ffffff;
  --good: #10b981; --warn: #f59e0b; --bad: #ef4444; --shadow: 0 10px 30px rgba(76, 44, 160, .10); --glow: rgba(139, 92, 246, .18);
  --rainbow: linear-gradient(90deg, #f472b6, #a78bfa, #60a5fa, #34d399, #fbbf24);
}
[data-theme="galaxy"] {
  --bg: #0f0b24; --bg-2: #17113a; --surface: #1d1646; --surface-2: #251c57; --sidebar: #0b0820; --sidebar-text: #efe9ff; --sidebar-muted: #9d93c9;
  --text: #f1edff; --muted: #b0a6d8; --line: #322a6b; --accent: #a78bfa; --accent-2: #f472b6; --accent-3: #22d3ee; --accent-ink: #120b2e;
  --shadow: 0 12px 34px rgba(0, 0, 0, .45); --glow: rgba(167, 139, 250, .22);
}
[data-theme="pastel"] {
  --bg: #fff7fb; --bg-2: #fdeef6; --surface: #ffffff; --surface-2: #fff5fa; --sidebar: #ffe1ef; --sidebar-text: #4a2140; --sidebar-muted: #9a6b88;
  --text: #3b1f35; --muted: #8a6680; --line: #f6d9e8; --accent: #ec4899; --accent-2: #a78bfa; --accent-3: #14b8a6; --accent-ink: #ffffff;
  --shadow: 0 10px 30px rgba(236, 72, 153, .10); --glow: rgba(236, 72, 153, .16);
}
[data-theme="midnight"] {
  --bg: #0a0a0f; --bg-2: #111118; --surface: #16161f; --surface-2: #1e1e2a; --sidebar: #050508; --sidebar-text: #ffffff; --sidebar-muted: #a3a3b8;
  --text: #ffffff; --muted: #b8b8cc; --line: #2c2c3d; --accent: #c4b5fd; --accent-2: #f9a8d4; --accent-3: #67e8f9; --accent-ink: #0a0a0f;
  --shadow: 0 12px 34px rgba(0, 0, 0, .6); --glow: rgba(196, 181, 253, .2);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 'Nunito', 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Fredoka', 'Segoe UI', system-ui, sans-serif; font-weight: 600; margin: 0; letter-spacing: .005em; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.u-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 9px 16px; border-radius: 12px; font-weight: 800; transition: transform .12s, box-shadow .12s, background .12s; }
.u-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.u-btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 8px 22px var(--glow); }
.u-btn.ghost { background: transparent; }
.u-btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.u-muted { color: var(--muted); }
.u-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 900; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.u-rainbow-text { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; } ::-webkit-scrollbar-track { background: transparent; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
