:root {
    --primary: #6C63FF;
    --primary-dark: #5a52d5;
    --primary-light: #8b85ff;
    --secondary: #FF6584;
    --secondary-dark: #e55a75;
    --accent-tri: #4285f4;
    --accent-circ: #00b894;
    --bg-app: #F8F9FD;
    --bg-surface: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636e72;
    --border: #dfe6e9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

[data-theme="dark"] {
    --bg-app: #0f0f23;
    --bg-surface: #1a1a2e;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --border: #2a2a3e;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.2s;
    font-size: 14px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

svg {
    width: 100%;
    height: 100%;
    touch-action: none;
}

.text-red { color: #ea4335; }
.text-green { color: #34a853; }
