From e953358f2048e9f0595cef17d57dc576cdc17500 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Wed, 11 Nov 2026 00:36:23 +0000 Subject: [PATCH] build(web): add React and Tailwind to the SPA Tailwind's theme is reset to the design tokens and the existing stylesheet moves under a components cascade layer, so utilities can only produce token values and still win over component rules. Co-Authored-By: Claude Opus 5.5 (1M context) --- biome.json | 12 +- web/package.json | 9 + web/pnpm-lock.yaml | 810 ++++++++- web/src/components.css | 2718 ++++++++++++++++++++++++++++++ web/src/{icons.ts => icons.tsx} | 0 web/src/{main.ts => main.tsx} | 0 web/src/style.css | 2801 +------------------------------ web/src/{ui.ts => ui.tsx} | 0 web/tsconfig.json | 1 + web/vite.config.ts | 3 + 10 files changed, 3635 insertions(+), 2719 deletions(-) create mode 100644 web/src/components.css rename web/src/{icons.ts => icons.tsx} (100%) rename web/src/{main.ts => main.tsx} (100%) rename web/src/{ui.ts => ui.tsx} (100%) diff --git a/biome.json b/biome.json index 145abb6..912b698 100644 --- a/biome.json +++ b/biome.json @@ -1,7 +1,12 @@ { "$schema": "https://biomejs.dev/schemas/2.5.8/schema.json", "files": { - "includes": ["web/**", "!web/src/api/**", "!web/dist/**", "!web/node_modules/**"] + "includes": [ + "web/**", + "!web/src/api/**", + "!web/dist/**", + "!web/node_modules/**" + ] }, "formatter": { "enabled": true, @@ -21,5 +26,10 @@ "organizeImports": "on" } } + }, + "css": { + "parser": { + "tailwindDirectives": true + } } } diff --git a/web/package.json b/web/package.json index df5f22c..17cd805 100644 --- a/web/package.json +++ b/web/package.json @@ -14,8 +14,17 @@ }, "devDependencies": { "@biomejs/biome": "^2.5.8", + "@tailwindcss/vite": "^4.3.5", "@types/node": "^24.0.0", + "@types/react": "^19.3.0", + "@types/react-dom": "^19.3.0", + "@vitejs/plugin-react": "^5.2.0", + "tailwindcss": "^4.3.5", "typescript": "^5.9.3", "vite": "^7.1.0" + }, + "dependencies": { + "react": "^19.3.1", + "react-dom": "^19.3.1" } } diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index bc48d7a..a77f6ad 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -7,22 +7,127 @@ settings: importers: .: + dependencies: + react: + specifier: ^19.3.1 + version: 19.3.1 + react-dom: + specifier: ^19.3.1 + version: 19.3.1(react@19.3.1) devDependencies: '@biomejs/biome': specifier: ^2.5.8 version: 2.5.10 + '@tailwindcss/vite': + specifier: ^4.3.5 + version: 4.3.5(vite@7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0)) '@types/node': specifier: ^24.0.0 version: 24.13.3 + '@types/react': + specifier: ^19.3.0 + version: 19.3.0 + '@types/react-dom': + specifier: ^19.3.0 + version: 19.3.0(@types/react@19.3.0) + '@vitejs/plugin-react': + specifier: ^5.2.0 + version: 5.2.0(vite@7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0)) + tailwindcss: + specifier: ^4.3.5 + version: 4.3.5 typescript: specifier: ^5.9.3 version: 5.9.3 vite: specifier: ^7.1.0 - version: 7.3.6(@types/node@24.13.3) + version: 7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0) packages: + '@babel/code-frame@7.29.7': + resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} + engines: {node: '>=6.9.0'} + + '@babel/compat-data@7.29.7': + resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==} + engines: {node: '>=6.9.0'} + + '@babel/core@7.29.13': + resolution: {integrity: sha512-j1nvOQCZYSgp7HLmisnCXFTpVvFODiijQ9QHkORfGKWH6YDtskTEeCJS7eV545GZ9UBzrq0e2xsOd5QQ5PjIqw==} + engines: {node: '>=6.9.0'} + + '@babel/generator@7.29.13': + resolution: {integrity: sha512-T5FRo+RzVHvGjWOuF1Ljc44b+NXAOazodHkGUHp4I3zCkQ4/sNVJm56h1S278LMR0bY5xBhztGziSbli8zObIw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-compilation-targets@7.29.13': + resolution: {integrity: sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==} + engines: {node: '>=6.9.0'} + + '@babel/helper-globals@7.29.7': + resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-imports@7.29.7': + resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-transforms@7.29.13': + resolution: {integrity: sha512-/U96wOz+SCoZ7Da/8kjDGltcNY280JPQcRNPK0Hk3PTbdpaiBDQImtC6JsbVwb1HGMr3usZQU2WsWVjhYNmRzw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-plugin-utils@7.29.7': + resolution: {integrity: sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-string-parser@7.29.13': + resolution: {integrity: sha512-fWegr+WsEsiMVW4KUNdIIzzMTZSzNiqhy0//6+2MRi2d5NFNsL/AYwBQW8eBnRbTBVRnDVzjaJEUqKaCWjMMdQ==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-option@7.29.7': + resolution: {integrity: sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==} + engines: {node: '>=6.9.0'} + + '@babel/helpers@7.29.13': + resolution: {integrity: sha512-laoRpD/kO/iA4CDlgJbixHekg7oPvWALK0PQyK3Ob2I2njZRvVAD77RfWCIImtqWCq6KijoBoZK7bp/HlTWASQ==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.29.13': + resolution: {integrity: sha512-fJM50YYjlTiBhgdkGmC1tBpv+FMAyo4annf2X6Aks+0yRlaiVkYW/3f07xAfVVkYIoZ9fFZp+mEThUFnuybhkQ==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/plugin-transform-react-jsx-self@7.29.7': + resolution: {integrity: sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-transform-react-jsx-source@7.29.7': + resolution: {integrity: sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/template@7.29.7': + resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==} + engines: {node: '>=6.9.0'} + + '@babel/traverse@7.29.13': + resolution: {integrity: sha512-0ve0xMlFA73dgY1oyJRY6RoW+/bncdcOQqg6jjYcVfXBK90OdLXjm9R6lmRetdZVrPjXkKIoMVBqYFPjcAlZ4Q==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.29.11': + resolution: {integrity: sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==} + engines: {node: '>=6.9.0'} + '@biomejs/biome@2.5.10': resolution: {integrity: sha512-WRKXARA3kTuiV5sxqTpobJ/I0MVd4vk3pOL6wnp5az4LntFIhWTj1RWZq3DI9PCEN3lXcqy7p5aqUHzvq8AXyQ==} engines: {node: '>=14.21.3'} @@ -236,6 +341,22 @@ packages: cpu: [x64] os: [win32] + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + '@napi-rs/lzma-linux-x64-gnu@1.5.1': resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==} engines: {node: ^22.20 || ^24.12 || >=25} @@ -243,6 +364,9 @@ packages: os: [linux] libc: [glibc] + '@rolldown/pluginutils@1.0.0-rc.3': + resolution: {integrity: sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==} + '@rollup/rollup-android-arm-eabi@4.62.5': resolution: {integrity: sha512-jfkGfTwhQpsiSckPF8r9bU3pn3vyd72NlWaO+TgEO6WPSDnUhXzrNYCHBMOYj0ACaUgjm6eERLF+XV9a6RstoA==} cpu: [arm] @@ -381,17 +505,179 @@ packages: cpu: [x64] os: [win32] + '@tailwindcss/node@4.3.5': + resolution: {integrity: sha512-yT53FzV4ke0cr/BguDxhWMpm5MJu1O2muzk+tKw6lKHjODAsYArBbWwFbJiaksfzFv1tpkO9QHGzmfs1hJT66g==} + + '@tailwindcss/oxide-android-arm64@4.3.5': + resolution: {integrity: sha512-Se0z5xMqcSQanJD1IYmO0cGpK3iv0fp3ZsIT7xRJZ1Da5PghvNoc46zz4jIQn+aan3dV9T8AermFNN9QPmsh0Q==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [android] + + '@tailwindcss/oxide-darwin-arm64@4.3.5': + resolution: {integrity: sha512-UPrgTDuUbvmqGMZuCnmI3FKee/tYKzKdp00/kuB4oSGB213VYg8QTdF7lVhnPoBXq/mIfJ+ILoBFqNOboWcMwQ==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [darwin] + + '@tailwindcss/oxide-darwin-x64@4.3.5': + resolution: {integrity: sha512-E+p7HEtjI0b8D7kbbWxH067cGui6d4c79COGko9fAPVE3rwc1E7ld2HFCbaG86AOGWS5VKQYqZOaf38ya4uxTQ==} + engines: {node: '>= 20'} + cpu: [x64] + os: [darwin] + + '@tailwindcss/oxide-freebsd-x64@4.3.5': + resolution: {integrity: sha512-yWEWcWyAG7rWOcTpJTjdhQ3pcaFY2h+0bqTRfgU3G2fz87ZU3AKdvdZKhslD+kyHnjBUWKvNdRYwIYC5dI1tIg==} + engines: {node: '>= 20'} + cpu: [x64] + os: [freebsd] + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.5': + resolution: {integrity: sha512-WmeVjtJhZlr+smpqcdR2kQkkn6arHIJnUIBxTO2EJcTLGY1ecVXNo2hbSn8xc0IH2aEtys936iMWKGyj0GaKnA==} + engines: {node: '>= 20'} + cpu: [arm] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-gnu@4.3.5': + resolution: {integrity: sha512-DTCSyucc6ShMp1QMqV5R94Z7xlgNgUzkGmFF1rL5HH2Qjy4eSmEqy+YLGkqqYvWa4sILtgrBt1JjRKbneQtiFQ==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@tailwindcss/oxide-linux-arm64-musl@4.3.5': + resolution: {integrity: sha512-H9lsvO4x9E4nE4Hi8h7NHHw0O/kcVSu+iOyFHNGdYzazGgDjFHZbE6S3hQ8kMcbNXSBlMdNi67LV5EVqtpaJtw==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@tailwindcss/oxide-linux-x64-gnu@4.3.5': + resolution: {integrity: sha512-4uxQvtBvPuIdl13WfUBj9xMZHH14PtHZ8OZdtLmdyDtG66sCa1t599NZT+jagkUzRtWhuul1qRZQ1nAJscXN5g==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@tailwindcss/oxide-linux-x64-musl@4.3.5': + resolution: {integrity: sha512-0JQAzs7jwbA7O6+z/adU+Jk3AXwsu3npAhtr5escXS7TqEqWcaDV7qHuI+0Vy/KQRuVGnLQREcSJWYauyV3oqg==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@tailwindcss/oxide-wasm32-wasi@4.3.5': + resolution: {integrity: sha512-OJhFmlEfdzMr+avACdi40RPtnkW0B6hXyxL/8r+tnEHBWZji36CYRjEXrrvgBmaYsD3oEOBqwYFRKsYvzFe7Bw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + bundledDependencies: + - '@napi-rs/wasm-runtime' + - '@emnapi/core' + - '@emnapi/runtime' + - '@tybys/wasm-util' + - '@emnapi/wasi-threads' + - tslib + + '@tailwindcss/oxide-win32-arm64-msvc@4.3.5': + resolution: {integrity: sha512-9o8jgthi+QE5eandnboiJT64VQfnIArfZzSTdgbhEK5aafdiu2jTW9Honi/mwYHxBZuH1vAC57IFyrh+0iK5Gg==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [win32] + + '@tailwindcss/oxide-win32-x64-msvc@4.3.5': + resolution: {integrity: sha512-XiKFfIy1RWe7qK4WqByxNW7Oz1/nkOy8o/BWhHminyV1PmpUd8Eedj5v2A8h2kpqeVlz6xRnwk9Fr/ZXNLcZfg==} + engines: {node: '>= 20'} + cpu: [x64] + os: [win32] + + '@tailwindcss/oxide@4.3.5': + resolution: {integrity: sha512-PynqGLZsZvwM9tqD/CUxkOIfyd6K5elZ2MooauzJryP/UqXYgi3yYbtt3N0Xe+MHV/eFKPFQCEfIKAqlAS1CBg==} + engines: {node: '>= 20'} + + '@tailwindcss/vite@4.3.5': + resolution: {integrity: sha512-BCNiY0a1ZjdOHVqw7kyb7U72BwfMF3dfUuN+tQsLWky/J5JOI/r7abibglXfygrZhVO/3u3V+E25kkKTeMkXaQ==} + peerDependencies: + vite: ^5.2.0 || ^6 || ^7 || ^8 + + '@types/babel__core@7.20.5': + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} + + '@types/babel__generator@7.27.0': + resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==} + + '@types/babel__template@7.4.4': + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} + + '@types/babel__traverse@7.28.0': + resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==} + '@types/estree@1.0.9': resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} '@types/node@24.13.3': resolution: {integrity: sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==} + '@types/react-dom@19.3.0': + resolution: {integrity: sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==} + peerDependencies: + '@types/react': ^19.3.0 + + '@types/react@19.3.0': + resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==} + + '@vitejs/plugin-react@5.2.0': + resolution: {integrity: sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + + baseline-browser-mapping@2.11.35: + resolution: {integrity: sha512-GNk8KX52CHqeNKGk8+7tZnQab/2k1t/BgrUHPKNdijzpEhF1saPQZHVKb6m5loSAxB39gyrTYw34Qf9CQ3u1qQ==} + engines: {node: '>=6.0.0'} + hasBin: true + + browserslist@4.29.5: + resolution: {integrity: sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + + caniuse-lite@1.0.30001823: + resolution: {integrity: sha512-TQ5s/djDjNk1axreUW+4rULH+BmdCMLiJkhaXnO5wqivG7tITkSUj4ItIdzqdZHKaXcHAV8dhH3JxOM7/7bwqw==} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + electron-to-chromium@1.5.478: + resolution: {integrity: sha512-pftG+ma5Lm8O6/p45bhYT6StBN5ziQymaRzmCZwFl8DwWHKPPD93FdOmP1aqftcepolQYvrcyTLa17kE8Yf+jg==} + + enhanced-resolve@5.26.1: + resolution: {integrity: sha512-PPnnSJq3azKOIewXR/uppBV/6h98dprBJ/WaQ9Qgj10xX1lJLNfg+XShpbsrSqcDSy2yYYyhfXM1wWhftqgyzw==} + engines: {node: '>=10.13.0'} + esbuild@0.28.2: resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} engines: {node: '>=18'} hasBin: true + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -406,11 +692,122 @@ packages: engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] + gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + jiti@2.7.0: + resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} + hasBin: true + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + + json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + + lightningcss-android-arm64@1.33.0: + resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.33.0: + resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.33.0: + resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.33.0: + resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.33.0: + resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.33.0: + resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + lightningcss-linux-arm64-musl@1.33.0: + resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + lightningcss-linux-x64-gnu@1.33.0: + resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + lightningcss-linux-x64-musl@1.33.0: + resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + lightningcss-win32-arm64-msvc@1.33.0: + resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.33.0: + resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.33.0: + resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} + engines: {node: '>= 12.0.0'} + + lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + + magic-string@1.4.5: + resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + nanoid@3.3.18: resolution: {integrity: sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + node-releases@2.0.63: + resolution: {integrity: sha512-6li2QanLsAXpIH2R6j77MzRyvOyrvdTqlKtO4CgBdHGNvN99ZZfyxszHc5o5+IZBWD5u6Hzwg83JoGXmqZNG9Q==} + engines: {node: '>=18'} + picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} @@ -422,15 +819,42 @@ packages: resolution: {integrity: sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==} engines: {node: ^10 || ^12 || >=14} + react-dom@19.3.1: + resolution: {integrity: sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==} + peerDependencies: + react: ^19.3.1 + + react-refresh@0.18.0: + resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==} + engines: {node: '>=0.10.0'} + + react@19.3.1: + resolution: {integrity: sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==} + engines: {node: '>=0.10.0'} + rollup@4.62.5: resolution: {integrity: sha512-/tqMfgP7GPA3PHhCmuiS4vIjrSVhHLgY++i+dhbG462euyAj7FpM4D9uq1X3BgjlqRdpcOrYhcQtfiQLNc8tqw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + scheduler@0.28.0: + resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==} + + semver@6.3.2: + resolution: {integrity: sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==} + hasBin: true + source-map-js@1.2.1: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} + tailwindcss@4.3.5: + resolution: {integrity: sha512-FcQk9BuffmEHJP2G0XmB2SplU1aLTI7j07Kunk+U74Ny+XiWOtzXz9aujFZ/avntw1e2cOv/3PkgzflQ7gX2vQ==} + + tapable@2.3.3: + resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==} + engines: {node: '>=6'} + tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} @@ -443,6 +867,12 @@ packages: undici-types@7.18.2: resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} + update-browserslist-db@1.3.4: + resolution: {integrity: sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + vite@7.3.6: resolution: {integrity: sha512-4XP60spRGjSZFf1qYH+dJIkK2znL3zQfl9KkOV9MkkRR/3Dls0dxaBsQPTloEc5BLXWPL9vsOxopxyKoMmDueg==} engines: {node: ^20.19.0 || >=22.12.0} @@ -483,8 +913,123 @@ packages: yaml: optional: true + yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + snapshots: + '@babel/code-frame@7.29.7': + dependencies: + '@babel/helper-validator-identifier': 7.29.7 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/compat-data@7.29.7': {} + + '@babel/core@7.29.13': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.13 + '@babel/helper-compilation-targets': 7.29.13 + '@babel/helper-module-transforms': 7.29.13(@babel/core@7.29.13) + '@babel/helpers': 7.29.13 + '@babel/parser': 7.29.13 + '@babel/template': 7.29.7 + '@babel/traverse': 7.29.13 + '@babel/types': 7.29.11 + '@jridgewell/remapping': 2.3.5 + convert-source-map: 2.0.0 + debug: 4.4.3 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.2 + transitivePeerDependencies: + - supports-color + + '@babel/generator@7.29.13': + dependencies: + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + jsesc: 3.1.0 + + '@babel/helper-compilation-targets@7.29.13': + dependencies: + '@babel/compat-data': 7.29.7 + '@babel/helper-validator-option': 7.29.7 + browserslist: 4.29.5 + lru-cache: 5.1.1 + semver: 6.3.2 + + '@babel/helper-globals@7.29.7': {} + + '@babel/helper-module-imports@7.29.7': + dependencies: + '@babel/traverse': 7.29.13 + '@babel/types': 7.29.11 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-transforms@7.29.13(@babel/core@7.29.13)': + dependencies: + '@babel/core': 7.29.13 + '@babel/helper-module-imports': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + '@babel/traverse': 7.29.13 + transitivePeerDependencies: + - supports-color + + '@babel/helper-plugin-utils@7.29.7': {} + + '@babel/helper-string-parser@7.29.13': {} + + '@babel/helper-validator-identifier@7.29.7': {} + + '@babel/helper-validator-option@7.29.7': {} + + '@babel/helpers@7.29.13': + dependencies: + '@babel/template': 7.29.7 + '@babel/types': 7.29.11 + + '@babel/parser@7.29.13': + dependencies: + '@babel/types': 7.29.11 + + '@babel/plugin-transform-react-jsx-self@7.29.7(@babel/core@7.29.13)': + dependencies: + '@babel/core': 7.29.13 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-transform-react-jsx-source@7.29.7(@babel/core@7.29.13)': + dependencies: + '@babel/core': 7.29.13 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/template@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 + + '@babel/traverse@7.29.13': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.13 + '@babel/helper-globals': 7.29.7 + '@babel/parser': 7.29.13 + '@babel/template': 7.29.7 + '@babel/types': 7.29.11 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + '@babel/types@7.29.11': + dependencies: + '@babel/helper-string-parser': 7.29.13 + '@babel/helper-validator-identifier': 7.29.7 + '@biomejs/biome@2.5.10': optionalDependencies: '@biomejs/cli-darwin-arm64': 2.5.10 @@ -598,9 +1143,30 @@ snapshots: '@esbuild/win32-x64@0.28.2': optional: true + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.6.0 + '@napi-rs/lzma-linux-x64-gnu@1.5.1': optional: true + '@rolldown/pluginutils@1.0.0-rc.3': {} + '@rollup/rollup-android-arm-eabi@4.62.5': optional: true @@ -676,12 +1242,150 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.62.5': optional: true + '@tailwindcss/node@4.3.5': + dependencies: + '@jridgewell/remapping': 2.3.5 + enhanced-resolve: 5.26.1 + jiti: 2.7.0 + lightningcss: 1.33.0 + magic-string: 1.4.5 + source-map-js: 1.2.1 + tailwindcss: 4.3.5 + + '@tailwindcss/oxide-android-arm64@4.3.5': + optional: true + + '@tailwindcss/oxide-darwin-arm64@4.3.5': + optional: true + + '@tailwindcss/oxide-darwin-x64@4.3.5': + optional: true + + '@tailwindcss/oxide-freebsd-x64@4.3.5': + optional: true + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.5': + optional: true + + '@tailwindcss/oxide-linux-arm64-gnu@4.3.5': + optional: true + + '@tailwindcss/oxide-linux-arm64-musl@4.3.5': + optional: true + + '@tailwindcss/oxide-linux-x64-gnu@4.3.5': + optional: true + + '@tailwindcss/oxide-linux-x64-musl@4.3.5': + optional: true + + '@tailwindcss/oxide-wasm32-wasi@4.3.5': + optional: true + + '@tailwindcss/oxide-win32-arm64-msvc@4.3.5': + optional: true + + '@tailwindcss/oxide-win32-x64-msvc@4.3.5': + optional: true + + '@tailwindcss/oxide@4.3.5': + optionalDependencies: + '@tailwindcss/oxide-android-arm64': 4.3.5 + '@tailwindcss/oxide-darwin-arm64': 4.3.5 + '@tailwindcss/oxide-darwin-x64': 4.3.5 + '@tailwindcss/oxide-freebsd-x64': 4.3.5 + '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.5 + '@tailwindcss/oxide-linux-arm64-gnu': 4.3.5 + '@tailwindcss/oxide-linux-arm64-musl': 4.3.5 + '@tailwindcss/oxide-linux-x64-gnu': 4.3.5 + '@tailwindcss/oxide-linux-x64-musl': 4.3.5 + '@tailwindcss/oxide-wasm32-wasi': 4.3.5 + '@tailwindcss/oxide-win32-arm64-msvc': 4.3.5 + '@tailwindcss/oxide-win32-x64-msvc': 4.3.5 + + '@tailwindcss/vite@4.3.5(vite@7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0))': + dependencies: + '@tailwindcss/node': 4.3.5 + '@tailwindcss/oxide': 4.3.5 + tailwindcss: 4.3.5 + vite: 7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0) + + '@types/babel__core@7.20.5': + dependencies: + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 + '@types/babel__generator': 7.27.0 + '@types/babel__template': 7.4.4 + '@types/babel__traverse': 7.28.0 + + '@types/babel__generator@7.27.0': + dependencies: + '@babel/types': 7.29.11 + + '@types/babel__template@7.4.4': + dependencies: + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 + + '@types/babel__traverse@7.28.0': + dependencies: + '@babel/types': 7.29.11 + '@types/estree@1.0.9': {} '@types/node@24.13.3': dependencies: undici-types: 7.18.2 + '@types/react-dom@19.3.0(@types/react@19.3.0)': + dependencies: + '@types/react': 19.3.0 + + '@types/react@19.3.0': + dependencies: + csstype: 3.2.3 + + '@vitejs/plugin-react@5.2.0(vite@7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0))': + dependencies: + '@babel/core': 7.29.13 + '@babel/plugin-transform-react-jsx-self': 7.29.7(@babel/core@7.29.13) + '@babel/plugin-transform-react-jsx-source': 7.29.7(@babel/core@7.29.13) + '@rolldown/pluginutils': 1.0.0-rc.3 + '@types/babel__core': 7.20.5 + react-refresh: 0.18.0 + vite: 7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0) + transitivePeerDependencies: + - supports-color + + baseline-browser-mapping@2.11.35: {} + + browserslist@4.29.5: + dependencies: + baseline-browser-mapping: 2.11.35 + caniuse-lite: 1.0.30001823 + electron-to-chromium: 1.5.478 + node-releases: 2.0.63 + update-browserslist-db: 1.3.4(browserslist@4.29.5) + + caniuse-lite@1.0.30001823: {} + + convert-source-map@2.0.0: {} + + csstype@3.2.3: {} + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + detect-libc@2.1.2: {} + + electron-to-chromium@1.5.478: {} + + enhanced-resolve@5.26.1: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.3.3 + esbuild@0.28.2: optionalDependencies: '@esbuild/aix-ppc64': 0.28.2 @@ -711,6 +1415,8 @@ snapshots: '@esbuild/win32-ia32': 0.28.2 '@esbuild/win32-x64': 0.28.2 + escalade@3.2.0: {} + fdir@6.5.0(picomatch@4.0.5): optionalDependencies: picomatch: 4.0.5 @@ -718,8 +1424,81 @@ snapshots: fsevents@2.3.3: optional: true + gensync@1.0.0-beta.2: {} + + graceful-fs@4.2.11: {} + + jiti@2.7.0: {} + + js-tokens@4.0.0: {} + + jsesc@3.1.0: {} + + json5@2.2.3: {} + + lightningcss-android-arm64@1.33.0: + optional: true + + lightningcss-darwin-arm64@1.33.0: + optional: true + + lightningcss-darwin-x64@1.33.0: + optional: true + + lightningcss-freebsd-x64@1.33.0: + optional: true + + lightningcss-linux-arm-gnueabihf@1.33.0: + optional: true + + lightningcss-linux-arm64-gnu@1.33.0: + optional: true + + lightningcss-linux-arm64-musl@1.33.0: + optional: true + + lightningcss-linux-x64-gnu@1.33.0: + optional: true + + lightningcss-linux-x64-musl@1.33.0: + optional: true + + lightningcss-win32-arm64-msvc@1.33.0: + optional: true + + lightningcss-win32-x64-msvc@1.33.0: + optional: true + + lightningcss@1.33.0: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.33.0 + lightningcss-darwin-arm64: 1.33.0 + lightningcss-darwin-x64: 1.33.0 + lightningcss-freebsd-x64: 1.33.0 + lightningcss-linux-arm-gnueabihf: 1.33.0 + lightningcss-linux-arm64-gnu: 1.33.0 + lightningcss-linux-arm64-musl: 1.33.0 + lightningcss-linux-x64-gnu: 1.33.0 + lightningcss-linux-x64-musl: 1.33.0 + lightningcss-win32-arm64-msvc: 1.33.0 + lightningcss-win32-x64-msvc: 1.33.0 + + lru-cache@5.1.1: + dependencies: + yallist: 3.1.1 + + magic-string@1.4.5: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + ms@2.1.3: {} + nanoid@3.3.18: {} + node-releases@2.0.63: {} + picocolors@1.1.1: {} picomatch@4.0.5: {} @@ -730,6 +1509,15 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 + react-dom@19.3.1(react@19.3.1): + dependencies: + react: 19.3.1 + scheduler: 0.28.0 + + react-refresh@0.18.0: {} + + react@19.3.1: {} + rollup@4.62.5: dependencies: '@types/estree': 1.0.9 @@ -762,8 +1550,16 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.62.5 fsevents: 2.3.3 + scheduler@0.28.0: {} + + semver@6.3.2: {} + source-map-js@1.2.1: {} + tailwindcss@4.3.5: {} + + tapable@2.3.3: {} + tinyglobby@0.2.17: dependencies: fdir: 6.5.0(picomatch@4.0.5) @@ -773,7 +1569,13 @@ snapshots: undici-types@7.18.2: {} - vite@7.3.6(@types/node@24.13.3): + update-browserslist-db@1.3.4(browserslist@4.29.5): + dependencies: + browserslist: 4.29.5 + escalade: 3.2.0 + picocolors: 1.1.1 + + vite@7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0): dependencies: esbuild: 0.28.2 fdir: 6.5.0(picomatch@4.0.5) @@ -784,3 +1586,7 @@ snapshots: optionalDependencies: '@types/node': 24.13.3 fsevents: 2.3.3 + jiti: 2.7.0 + lightningcss: 1.33.0 + + yallist@3.1.1: {} diff --git a/web/src/components.css b/web/src/components.css new file mode 100644 index 0000000..a0fb1a4 --- /dev/null +++ b/web/src/components.css @@ -0,0 +1,2718 @@ +/* arr — master-control board, revision 2 (mobile first). + Tokens mirror .impeccable/design.json; components consume tokens, never + literals. Committed dark: a control room is lit by its lamps. + The phone is the base layout: rules here are the 390px truth, and the + min-width queries at the end of each block add room as it appears. Rows + answer to their container (`.deck` and every inline panel are containers), + so a row lays out the same in a narrow panel as on a narrow screen. */ + +@font-face { + font-family: "Rajdhani"; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url("/fonts/rajdhani-600-latin.woff2") format("woff2"); +} + +@font-face { + font-family: "Rajdhani"; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url("/fonts/rajdhani-700-latin.woff2") format("woff2"); +} + +:root { + /* ground and panels */ + --ground: oklch(0.14 0.01 250); + --panel: oklch(0.18 0.012 250); + --panel-raised: oklch(0.21 0.014 250); + --line: oklch(0.3 0.015 250); + --line-strong: oklch(0.42 0.02 250); + --highlight: oklch(1 0 0 / 4%); + + /* ink */ + --ink: oklch(0.93 0.008 250); + --ink-muted: oklch(0.72 0.015 250); + --ink-faint: oklch(0.58 0.015 250); + + /* signal lamps: ok on disk, warn needs you or armed, fault broken */ + --signal-ok: oklch(0.8 0.17 150); + --signal-warn: oklch(0.82 0.14 80); + --signal-fault: oklch(0.68 0.21 25); + --signal-idle: oklch(0.45 0.02 250); + + /* the one interactive hue */ + --accent: oklch(0.8 0.12 220); + --accent-bright: oklch(0.88 0.12 220); + + /* dead lamp and pressed-control lowlight */ + --lamp-off: oklch(0.3 0.012 250); + --lowlight: oklch(0 0 0 / 30%); + + /* release verdicts (§9.3) — rejected is quiet slate, never fault red */ + --verdict-eligible: oklch(0.8 0.17 150); + --verdict-waived: oklch(0.82 0.14 80); + --verdict-rejected: oklch(0.68 0.02 250); + + /* score heat scale (issue #111) — list-relative, lowest red to highest green */ + --score-0: oklch(0.68 0.19 25); + --score-1: oklch(0.7 0.185 46); + --score-2: oklch(0.72 0.175 67); + --score-3: oklch(0.75 0.165 88); + --score-4: oklch(0.77 0.16 108); + --score-5: oklch(0.79 0.165 129); + --score-6: oklch(0.8 0.17 150); + + /* activity: airing, downloading */ + --status-airing: oklch(0.78 0.14 305); + + /* type */ + --font-label: system-ui, -apple-system, "Segoe UI", sans-serif; + --font-readout: + ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace; + --font-display: "Rajdhani", "Avenir Next Condensed", "Arial Narrow", sans-serif; + + --text-2xs: 0.6875rem; + --text-xs: 0.75rem; + --text-sm: 0.8125rem; + --text-base: 1rem; + --text-md: 1.0625rem; + --text-lg: 1.3125rem; + --text-xl: 1.625rem; + + /* rhythm */ + --space-1: 0.25rem; + --space-2: 0.5rem; + --space-3: 0.75rem; + --space-4: 1rem; + --space-6: 1.5rem; + --space-8: 2rem; + --space-12: 3rem; + + --radius: 4px; + --ease-out: cubic-bezier(0.25, 1, 0.5, 1); + + /* geometry: a 44px touch target, a 24px chip, one row height */ + --control-h: 2.75rem; + --chip-h: 1.5rem; + --row-min: 3.5rem; + --toggle-w: 8.5rem; + --word-w: 5.5rem; + --rail-h: 3.25rem; + --tabbar-h: 3.5rem; + + /* the device's own edges */ + --safe-top: env(safe-area-inset-top, 0px); + --safe-bottom: env(safe-area-inset-bottom, 0px); + --gutter: max(var(--space-4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); + --tabbar-space: calc(var(--tabbar-h) + var(--safe-bottom)); +} + +/* the tab bar becomes rail links */ +@media (min-width: 40rem) { + :root { + --tabbar-space: 0px; + --word-w: 7.5rem; + } +} + +/* dense only where a mouse and room both exist */ +@media (pointer: fine) and (min-width: 64rem) { + :root { + --control-h: 2.25rem; + --row-min: 3rem; + --toggle-w: 8rem; + } +} + +* { + box-sizing: border-box; +} + +html, +body { + margin: 0; + padding: 0; +} + +html { + scroll-padding-top: var(--rail-h); + -webkit-text-size-adjust: 100%; +} + +body { + min-height: 100dvh; + display: flex; + flex-direction: column; + padding-bottom: var(--tabbar-space); + background: var(--ground); + color: var(--ink); + font-family: var(--font-label); + font-size: var(--text-base); + line-height: 1.5; + -webkit-tap-highlight-color: transparent; +} + +::selection { + background: oklch(from var(--accent) l c h / 35%); + color: var(--ink); +} + +* { + scrollbar-color: var(--line-strong) transparent; +} + +.readout { + font-family: var(--font-readout); + font-size: var(--text-sm); + font-variant-numeric: tabular-nums; +} + +.dim { + color: var(--ink-muted); +} + +:focus-visible { + outline: 2px solid var(--accent); + outline-offset: 2px; +} + +/* a heading focused on navigation is a reading position, not a control */ +[tabindex="-1"]:focus { + outline: none; +} + +/* hidden wins over every display rule a component sets; the one exception is + a status slot, which keeps its line while empty */ +[hidden]:not(.deck-status) { + /* biome-ignore lint/complexity/noImportantStyles: `hidden` must beat component display rules */ + display: none !important; +} + +/* ---- lamps ------------------------------------------------------------ */ + +.lamp { + --lamp: var(--signal-idle); + width: 0.625rem; + height: 0.625rem; + flex: none; + border-radius: 50%; + background: var(--lamp); + /* the panel's own device: a lit indicator, not a depth shadow */ + box-shadow: + 0 0 6px var(--lamp), + 0 0 14px oklch(from var(--lamp) l c h / 35%); + transition: background 300ms var(--ease-out); +} + +.lamp-big { + width: 0.875rem; + height: 0.875rem; +} + +.lamp[data-state="ok"] { + --lamp: var(--signal-ok); +} + +.lamp[data-state="unconfigured"], +.lamp[data-state="degraded"], +.lamp[data-state="warn"] { + --lamp: var(--signal-warn); +} + +.lamp[data-state="unreachable"] { + --lamp: var(--signal-fault); +} + +.lamp[data-state="probing"] { + --lamp: var(--signal-idle); + animation: lamp-probe 1.2s var(--ease-out) infinite alternate; +} + +/* dead air: dark, no glow, no motion */ +.lamp[data-state="off"] { + --lamp: var(--lamp-off); + box-shadow: none; +} + +@keyframes lamp-probe { + from { + opacity: 0.45; + } + to { + opacity: 1; + } +} + +/* power-up: lamps flicker on upstream to downstream, once, on first verdict */ +@keyframes lamp-strike { + 0% { + opacity: 0.2; + } + 40% { + opacity: 1; + } + 55% { + opacity: 0.35; + } + 100% { + opacity: 1; + } +} + +.chain.powered .lamp { + animation: lamp-strike 420ms var(--ease-out) both; + animation-delay: calc(var(--strike, 0) * 120ms); +} + +.chain.powered .lamp[data-state="off"] { + animation: none; +} + +/* ---- type roles --------------------------------------------------------- */ + +/* one role per job: page title, section, group label, row title, readout */ +.page-title { + margin: 0; + min-width: 0; + font-family: var(--font-display); + font-size: var(--text-lg); + font-weight: 700; + letter-spacing: 0.04em; + line-height: 1.1; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +.section-title { + margin: 0; + font-family: var(--font-display); + font-size: var(--text-md); + font-weight: 600; + letter-spacing: 0.08em; + text-transform: uppercase; + line-height: 1.2; + color: var(--ink-muted); +} + +/* the engraved micro-label: a group inside a section, never a kicker */ +.deck-label { + margin: 0; + font-size: var(--text-2xs); + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.12em; + color: var(--ink-muted); +} + +.deck-count { + font-size: var(--text-xs); + color: var(--ink-faint); +} + +/* ---- controls ------------------------------------------------------------- */ + +/* primary: cyan word on a raised plate — one per header or panel */ +.control { + display: inline-flex; + align-items: center; + justify-content: center; + gap: var(--space-2); + min-height: var(--control-h); + padding: 0 var(--space-4); + font-family: var(--font-readout); + font-size: var(--text-xs); + font-weight: 600; + font-variant-numeric: tabular-nums; + line-height: 1; + text-transform: uppercase; + letter-spacing: 0.08em; + white-space: nowrap; + text-decoration: none; + color: var(--accent); + background: var(--panel-raised); + border: 1px solid var(--line-strong); + border-radius: var(--radius); + box-shadow: inset 0 1px var(--highlight); + cursor: pointer; + transition: + border-color 150ms var(--ease-out), + color 150ms var(--ease-out), + background 150ms var(--ease-out); +} + +.control:hover:not(:disabled) { + border-color: var(--accent); + color: var(--accent-bright); +} + +.control:active:not(:disabled) { + box-shadow: inset 0 1px var(--lowlight); +} + +.control:disabled { + color: var(--ink-faint); + border-color: var(--line); + cursor: default; +} + +.control[data-busy] { + color: var(--ink-faint); + border-style: dashed; + cursor: progress; +} + +.control[data-done] { + color: var(--signal-ok); + border-color: oklch(from var(--signal-ok) l c h / 55%); +} + +.control[data-failed] { + color: var(--signal-fault); + border-color: oklch(from var(--signal-fault) l c h / 55%); +} + +/* quiet: secondary actions — cancel, add, back, retry. Never a toggle. */ +.control-quiet { + color: var(--ink); + background: transparent; + border-color: var(--line); + box-shadow: none; +} + +/* a word control whose label changes keeps one width */ +.control-fixed { + min-width: var(--word-w); +} + +/* icon: a square glyph, the accessible name carries the meaning */ +.control-icon { + width: var(--control-h); + min-width: var(--control-h); + padding: 0; +} + +.control[aria-expanded="true"] { + border-color: var(--accent); + color: var(--accent-bright); +} + +/* destructive rests red, so delete never reads like the glyph beside it */ +.control[data-kind="delete"]:not(:disabled) { + color: var(--signal-fault); +} + +.control[data-kind="delete"]:hover:not(:disabled), +.control[data-kind="delete"]:focus-visible:not(:disabled) { + border-color: var(--signal-fault); + color: var(--signal-fault); +} + +/* armed: the same square, now an amber check — the next tap fires */ +.control[data-armed="true"]:not(:disabled), +.control[data-armed="true"]:hover:not(:disabled) { + color: var(--ground); + background: var(--signal-warn); + border-color: var(--signal-warn); +} + +.icon { + display: block; + flex: none; + width: 1rem; + height: 1rem; + fill: none; + stroke: currentColor; + stroke-width: 1.5; + stroke-linecap: round; + stroke-linejoin: round; +} + +.icon[data-icon="more"] { + stroke-width: 2.2; +} + +.icon[data-icon="play"] { + fill: currentColor; + stroke-width: 1; +} + +/* provider wordmark badges (§9.6): drawn inline, monochrome */ +.icon-mark { + width: auto; + height: 1.125rem; +} + +.icon-mark rect { + stroke-width: 1.6; +} + +.icon-mark text { + fill: currentColor; + stroke: none; + font-family: var(--font-readout); + font-weight: 700; + letter-spacing: 0.06em; +} + +/* the chip-scale delete (#251): no plate, the armed glyph does the word's job */ +.control-micro { + display: inline-flex; + align-items: center; + justify-content: center; + width: 1rem; + height: 1rem; + padding: 0; + margin-inline-start: var(--space-1); + color: var(--ink-faint); + background: none; + border: 0; + border-radius: 2px; + cursor: pointer; +} + +.control-micro .icon { + width: 0.75rem; + height: 0.75rem; +} + +.control-micro:hover:not(:disabled), +.control-micro:focus-visible { + color: var(--signal-fault); + background: oklch(from var(--signal-fault) l c h / 15%); +} + +.control-micro[data-armed="true"] { + color: var(--ground); + background: var(--signal-warn); +} + +.control-micro:disabled { + opacity: 0.5; +} + +/* disclosure: full control height, the chevron turns, the plate holds its width */ +.disclose { + justify-content: space-between; + min-width: 9rem; +} + +.disclose .icon { + transition: transform 200ms var(--ease-out); +} + +.disclose[aria-expanded="true"] .icon { + transform: rotate(180deg); +} + +/* lamp toggle: a rule that is on or off, lamp plus word */ +.toggle { + display: inline-flex; + align-items: center; + gap: var(--space-2); + min-height: var(--control-h); + padding: 0 var(--space-3); + font-family: var(--font-readout); + font-size: var(--text-xs); + font-weight: 600; + line-height: 1; + text-transform: uppercase; + letter-spacing: 0.08em; + white-space: nowrap; + color: var(--ink-muted); + background: transparent; + border: 1px solid var(--line); + border-radius: var(--radius); + cursor: pointer; + transition: + border-color 150ms var(--ease-out), + color 150ms var(--ease-out); +} + +.toggle:hover:not(:disabled) { + border-color: var(--accent); +} + +.toggle:disabled { + cursor: progress; + opacity: 0.6; +} + +.toggle-lamp { + width: 0.5rem; + height: 0.5rem; + flex: none; + border-radius: 50%; + background: var(--lamp-off); + transition: + background 300ms var(--ease-out), + box-shadow 300ms var(--ease-out); +} + +.toggle-state { + min-width: 3ch; + margin-left: auto; + text-align: left; + color: var(--ink-faint); +} + +.toggle[aria-pressed="true"] { + color: var(--ink); + border-color: var(--line-strong); +} + +.toggle[aria-pressed="true"] .toggle-lamp { + background: var(--accent); + box-shadow: 0 0 6px oklch(from var(--accent) l c h / 60%); +} + +.toggle[aria-pressed="true"] .toggle-state { + color: var(--accent); +} + +/* segmented: one choice of a few, the engaged side lit */ +.segmented { + display: inline-flex; + flex: none; + min-width: 0; + margin: 0; + padding: 0; + border: 0; +} + +.seg { + display: inline-flex; + align-items: center; + justify-content: center; + gap: var(--space-2); + min-height: var(--control-h); + padding: 0 var(--space-3); + font-family: var(--font-readout); + font-size: var(--text-xs); + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.08em; + color: var(--ink-muted); + background: transparent; + border: 1px solid var(--line); + cursor: pointer; + transition: + border-color 150ms var(--ease-out), + color 150ms var(--ease-out); +} + +.seg:first-child { + border-radius: var(--radius) 0 0 var(--radius); +} + +.seg:last-child { + border-radius: 0 var(--radius) var(--radius) 0; +} + +.seg + .seg { + border-left-width: 0; +} + +.seg-icon { + width: var(--control-h); + padding: 0; +} + +.seg:hover { + color: var(--accent-bright); +} + +/* the lit edge is drawn inside, so the joined borders never double */ +.seg[aria-pressed="true"] { + color: var(--accent-bright); + background: var(--panel-raised); + box-shadow: inset 0 0 0 1px var(--accent); +} + +.filter-count { + color: var(--ink-faint); + font-variant-numeric: tabular-nums; +} + +.seg[aria-pressed="true"] .filter-count { + color: var(--ink-muted); +} + +/* ---- chips ---------------------------------------------------------------- */ + +/* a label, not a target: shorter than a control, one line always */ +.chip { + display: inline-flex; + flex: none; + align-items: center; + gap: var(--space-1); + height: var(--chip-h); + padding: 0 var(--space-2); + background: var(--panel-raised); + border: 1px solid var(--line); + border-radius: 3px; + font-family: var(--font-readout); + font-size: var(--text-2xs); + font-variant-numeric: tabular-nums; + line-height: 1; + white-space: nowrap; + color: var(--ink-muted); +} + +.chip .icon { + width: 0.75rem; + height: 0.75rem; + stroke-width: 1.7; +} + +/* a chip that explains itself on tap (§9.6 tooltips have no touch) */ +.chip[data-explain], +.chip[role="button"], +button.chip { + font: inherit; + font-family: var(--font-readout); + font-size: var(--text-2xs); + cursor: pointer; + transition: + color 150ms var(--ease-out), + border-color 150ms var(--ease-out); +} + +.chip[data-explain]:hover, +.chip[data-explain][aria-expanded="true"] { + border-color: currentColor; +} + +/* release verdicts */ +.chip[data-verdict="eligible"] { + color: var(--verdict-eligible); + border-color: oklch(from var(--verdict-eligible) l c h / 45%); +} + +/* the dashed border is the visible mark of a relaxed rule */ +.chip[data-verdict="waived"] { + color: var(--verdict-waived); + border-style: dashed; + border-color: oklch(from var(--verdict-waived) l c h / 55%); +} + +.chip[data-verdict="rejected"] { + color: var(--verdict-rejected); +} + +/* a subtitle wanted and not yet on disk is the system's errand, not yours */ +.chip[data-verdict="wanted"] { + color: var(--ink); + border-color: var(--line-strong); +} + +/* #227: blacklisted at import — the policy's own floor (amber, act on it) or + the release itself broken (fault red) */ +.chip[data-blacklist="policy"] { + color: var(--signal-warn); + border-color: oklch(from var(--signal-warn) l c h / 55%); +} + +.chip[data-blacklist="release"] { + color: var(--signal-fault); + border-color: oklch(from var(--signal-fault) l c h / 55%); +} + +/* media state (§4.2): green on disk, violet downloading; wanted-and-missing + is ink — the system is on it, nothing needs you yet */ +.chip[data-movie-state="available"] { + color: var(--signal-ok); + border-color: oklch(from var(--signal-ok) l c h / 45%); +} + +.chip[data-movie-state="downloading"] { + color: var(--status-airing); + border-color: oklch(from var(--status-airing) l c h / 45%); +} + +.chip[data-movie-state="missing"][data-wanted="true"] { + color: var(--ink); + border-color: var(--line-strong); +} + +/* §9.8: the slot is refilled in place by the poll and takes no box itself */ +.dl-slot { + display: contents; +} + +/* §9.8: live download state, fixed width so 9% → 10% never moves a neighbour */ +.dl-chip { + min-width: 7ch; + justify-content: center; +} + +.dl-chip[data-dl-phase="downloading"] { + color: var(--status-airing); + border-color: oklch(from var(--status-airing) l c h / 45%); +} + +.dl-chip[data-dl-phase="stalled"] { + color: var(--signal-warn); + border-color: oklch(from var(--signal-warn) l c h / 55%); +} + +.dl-chip[data-dl-phase="errored"] { + color: var(--signal-fault); + border-color: oklch(from var(--signal-fault) l c h / 55%); +} + +.dl-chip[data-dl-phase="seeding"] { + color: var(--signal-ok); + border-color: oklch(from var(--signal-ok) l c h / 45%); +} + +/* library status (§4.2): violet while live, green once complete; incomplete + and waiting are neutral — amber is kept for what needs you */ +.chip[data-status="airing"] { + color: var(--status-airing); + border-color: oklch(from var(--status-airing) l c h / 45%); +} + +.chip[data-status="incomplete"] { + color: var(--ink); + border-color: var(--line-strong); +} + +.chip[data-status="complete"], +.chip[data-status="ended"], +.chip[data-counts="complete"] { + color: var(--signal-ok); + border-color: oklch(from var(--signal-ok) l c h / 45%); +} + +.chip[data-counts="partial"] { + color: var(--ink); +} + +/* issue 122: gone upstream while its file remained — a conflict, amber dashed */ +.chip[data-flag="vanished"] { + color: var(--signal-warn); + border-style: dashed; + border-color: oklch(from var(--signal-warn) l c h / 55%); +} + +/* a machine translation reads as machine-made (§15) — the relaxed-case dash */ +.chip[data-mt="true"] { + border-style: dashed; +} + +.chip[data-tone="fault"] { + color: var(--signal-fault); + border-color: oklch(from var(--signal-fault) l c h / 55%); +} + +/* a chip whose whole label is its glyph */ +.chip-glyph { + min-width: var(--chip-h); + justify-content: center; + padding: 0 var(--space-1); +} + +.star { + width: 0.625rem; + height: 0.625rem; + flex: none; + fill: var(--ink); +} + +/* ---- the rail and the tab bar ------------------------------------------- */ + +.rail { + position: sticky; + top: 0; + z-index: 20; + padding-top: var(--safe-top); + border-bottom: 1px solid var(--line); + background: var(--panel); + box-shadow: inset 0 1px var(--highlight); +} + +.rail-inner { + display: flex; + align-items: center; + gap: var(--space-3); + width: 100%; + max-width: 68rem; + height: var(--rail-h); + margin-inline: auto; + padding-inline: var(--gutter); +} + +.rail-id { + display: flex; + flex: none; + align-items: center; + gap: var(--space-3); + margin-right: auto; +} + +/* §9.7: the wordmark is a link home */ +.wordmark { + font-family: var(--font-display); + font-size: var(--text-xl); + font-weight: 700; + letter-spacing: 0.1em; + line-height: 1; + color: var(--ink); + text-decoration: none; +} + +.wordmark:hover, +.wordmark:focus-visible { + color: var(--accent-bright); +} + +.rail-nav { + display: none; +} + +.nav-link { + display: inline-flex; + align-items: center; + gap: var(--space-2); + min-height: var(--control-h); + padding: 0 var(--space-3); + font-family: var(--font-readout); + font-size: var(--text-xs); + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.08em; + color: var(--ink-muted); + text-decoration: none; + border-bottom: 2px solid transparent; +} + +.nav-link:hover { + color: var(--accent-bright); +} + +.nav-link[aria-current="page"] { + color: var(--accent); + border-bottom-color: var(--accent); +} + +/* attention: amber count on the queues destination, wherever it sits */ +.nav-count { + font-size: var(--text-xs); + color: var(--signal-warn); +} + +.rail-search { + position: relative; + display: none; + flex: 1; + align-items: center; + min-width: 0; +} + +.rail-search-glyph { + position: absolute; + left: var(--space-3); + color: var(--ink-faint); + pointer-events: none; +} + +.search-input { + width: 100%; + min-height: var(--control-h); + padding: 0 var(--space-8) 0 var(--space-8); + font-size: var(--text-base); + color: var(--ink); + background: var(--ground); + border: 1px solid var(--line); + border-radius: var(--radius); + box-shadow: inset 0 1px var(--lowlight); + caret-color: var(--accent); + transition: border-color 150ms var(--ease-out); +} + +.search-input::placeholder { + color: var(--ink-faint); + opacity: 1; +} + +.search-input:hover { + border-color: var(--line-strong); +} + +.search-input:focus { + border-color: var(--accent); + outline: none; +} + +.search-hint { + position: absolute; + right: var(--space-3); + display: none; + padding: 0 var(--space-1); + font-size: var(--text-2xs); + color: var(--ink-faint); + border: 1px solid var(--line); + border-radius: var(--radius); + pointer-events: none; +} + +.rail-search-close { + flex: none; + margin-left: var(--space-2); +} + +.rail-version { + display: none; + font-size: var(--text-xs); +} + +.tabbar { + position: fixed; + right: 0; + bottom: 0; + left: 0; + z-index: 20; + display: grid; + grid-template-columns: repeat(4, 1fr); + height: var(--tabbar-space); + padding-bottom: var(--safe-bottom); + background: var(--panel); + border-top: 1px solid var(--line); +} + +.tab { + position: relative; + display: grid; + place-items: center; + align-content: center; + gap: var(--space-1); + font-size: var(--text-2xs); + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.1em; + color: var(--ink-faint); + text-decoration: none; +} + +.tab[aria-current="page"] { + color: var(--accent); +} + +.tab[aria-current="page"]::before { + content: ""; + position: absolute; + top: 0; + left: 30%; + right: 30%; + height: 2px; + background: var(--accent); +} + +.tab-badge { + position: absolute; + top: var(--space-1); + left: 55%; + min-width: 1.1rem; + height: 1.1rem; + padding: 0 var(--space-1); + border-radius: 999px; + font-size: var(--text-2xs); + font-weight: 700; + line-height: 1.1rem; + text-align: center; + color: var(--ground); + background: var(--signal-warn); +} + +/* phone search mode: the field takes the rail, the identity steps aside */ +.rail[data-searching] .rail-id, +.rail[data-searching] .rail-search-open { + display: none; +} + +.rail[data-searching] .rail-search { + display: flex; +} + +@media (min-width: 40rem) { + .tabbar, + .rail-search-close { + display: none; + } + + /* biome-ignore lint/style/noDescendingSpecificity: the phone search-mode rule never applies from 40rem */ + .rail-search-open { + display: none; + } + + .rail-id { + margin-right: 0; + } + + .rail-nav { + display: flex; + align-items: center; + gap: var(--space-1); + } + + .rail-search, + .rail[data-searching] .rail-search { + display: flex; + max-width: 26rem; + margin-left: auto; + } + + .rail[data-searching] .rail-id { + display: flex; + } + + .search-input { + font-size: var(--text-sm); + } +} + +@media (min-width: 64rem) { + .search-hint, + .rail-version { + display: inline; + } +} + +/* ---- decks, pages, sections --------------------------------------------- */ + +.deck { + container-type: inline-size; + width: 100%; + max-width: 68rem; + margin: 0 auto; + padding: var(--space-4) 0 var(--space-12); + flex: 1; +} + +/* the gutter belongs to the content, so a hero can still reach both edges */ +.deck > * { + margin-inline: var(--gutter); +} + +.deck > section.hero { + margin-inline: 0; +} + +.deck.detail { + padding-top: 0; +} + +.page-bar .page-title { + text-transform: capitalize; +} + +/* a page's line: title, count, a one-line status slot, the page's controls */ +.page-bar { + display: flex; + align-items: center; + gap: var(--space-3); + min-height: var(--control-h); + margin-bottom: var(--space-4); +} + +.page-bar .deck-count { + flex: none; +} + +/* always laid out, so a message never pushes the page down */ +.head-status { + flex: 1; + min-width: 0; + margin: 0; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: var(--text-xs); + color: var(--ink-muted); +} + +.head-status[data-tone="fault"] { + color: var(--signal-fault); +} + +/* a section's status: one reserved line, wraps only when the sentence must */ +.deck-status { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: var(--space-2) var(--space-3); + min-height: 1.5rem; + margin-bottom: var(--space-3); + font-size: var(--text-xs); + color: var(--ink-muted); +} + +.deck-status[hidden] { + visibility: hidden; +} + +.deck-status[data-tone="fault"], +.head-status[data-tone="fault"] { + color: var(--signal-fault); +} + +.deck-status .lamp, +.head-status .lamp { + display: inline-block; + margin-right: var(--space-2); +} + +.deck-group { + margin-bottom: var(--space-8); +} + +.deck-head { + display: flex; + align-items: center; + gap: var(--space-3); + min-height: var(--control-h); + padding-bottom: var(--space-1); + border-bottom: 1px solid var(--line); +} + +.deck-head .head-action, +.deck-head .disclose { + margin-left: auto; +} + +/* nested heads inside a section are group labels, one step quieter */ +.deck-group .deck-group .deck-head { + min-height: var(--chip-h); + padding-top: var(--space-3); +} + +.deck-rows { + margin: 0; + padding: 0; + list-style: none; +} + +/* one plain sentence, the long form behind a tap */ +.group-note { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: var(--space-1) var(--space-2); + padding: var(--space-2) 0 0; + font-size: var(--text-sm); + color: var(--ink-muted); +} + +.group-note p { + margin: 0; +} + +.group-note .group-note-more { + flex-basis: 100%; + max-width: 65ch; + font-size: var(--text-xs); +} + +.group-note .control-icon { + width: var(--chip-h); + min-width: var(--chip-h); + min-height: var(--chip-h); + border-color: transparent; + background: none; + box-shadow: none; + color: var(--ink-faint); +} + +/* ---- the row ------------------------------------------------------------------ */ + +/* lead | body | actions, then the tray full width. The body is minmax(0, 1fr): + whatever is too long is clipped inside it and never pushes the actions. */ +.r { + position: relative; + display: grid; + grid-template-columns: auto minmax(0, 1fr) auto; + grid-template-areas: + "lead body act" + "tray tray tray"; + align-items: center; + column-gap: var(--space-3); + min-height: var(--row-min); + padding: var(--space-2) 0; + border-bottom: 1px solid oklch(from var(--line) l c h / 60%); +} + +.r[data-nolead] { + grid-template-columns: minmax(0, 1fr) auto; + grid-template-areas: + "body act" + "tray tray"; +} + +.r-lead { + grid-area: lead; + display: flex; + align-items: center; + justify-content: center; +} + +.r-body { + grid-area: body; + display: grid; + align-content: center; + gap: var(--space-1); + min-width: 0; +} + +.r-title { + min-width: 0; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: var(--text-sm); + font-weight: 600; + line-height: 1.3; + color: var(--ink); +} + +.r-title .yr { + margin-left: var(--space-2); + font-family: var(--font-readout); + font-size: var(--text-xs); + font-weight: 400; + color: var(--ink-faint); +} + +/* one line of chips; what does not fit fades out at the edge rather than + being cut through a word */ +.r-meta { + display: flex; + align-items: center; + flex-wrap: nowrap; + gap: var(--space-1); + min-width: 0; + overflow: hidden; + mask-image: linear-gradient(to right, var(--ink) calc(100% - 1.5rem), transparent); +} + +.r-meta:empty { + display: none; +} + +.r-meta [data-pri="2"] { + display: none; +} + +.r-sub { + min-width: 0; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: var(--text-2xs); + line-height: 1.3; + color: var(--ink-faint); +} + +/* the full string, on a tap (§9.3: the release name is evidence, on expand) */ +.r-sub[data-full] { + white-space: normal; + overflow-wrap: anywhere; +} + +.r-sub[data-tone="fault"] { + color: var(--signal-fault); +} + +.r-act { + grid-area: act; + display: flex; + align-items: center; + justify-content: flex-end; + gap: var(--space-1); +} + +/* every slot has its width whether or not it holds a control, so a row of a + kind keeps one action column */ +.r-slot { + display: flex; + flex: none; + align-items: center; + justify-content: center; +} + +.r-slot[data-width="icon"] { + width: var(--control-h); +} + +.r-slot[data-width="toggle"] { + width: var(--toggle-w); +} + +.r-slot[data-width="toggle"] > .toggle { + width: 100%; +} + +.r-slot[data-width="word"] { + min-width: var(--word-w); +} + +.r-slot[data-width="word"] > .control { + width: 100%; +} + +.r-slot[data-wide] { + display: none; +} + +.r-chevron { + color: var(--ink-faint); +} + +.r-chevron .icon { + width: 0.875rem; + height: 0.875rem; +} + +/* the row as a link: a stretched button under everything; real controls sit + above it, everything else lets the tap through */ +.r-link { + position: absolute; + inset: 0; + z-index: 0; + padding: 0; + background: transparent; + border: 0; + cursor: pointer; + transition: background 150ms var(--ease-out); +} + +.r-link:hover { + background: var(--highlight); +} + +.r-link:focus-visible { + outline-offset: -2px; +} + +.r:has(> .r-link) > :not(.r-link) { + position: relative; + z-index: 1; + pointer-events: none; +} + +.r:has(> .r-link) button:not(.r-link), +.r:has(> .r-link) a, +.r:has(> .r-link) select, +.r:has(> .r-link) input, +.r:has(> .r-link) [role="button"] { + pointer-events: auto; +} + +.r-tray { + grid-area: tray; + display: grid; + gap: var(--space-2); + min-width: 0; + padding-top: var(--space-2); +} + +.r-tray:not(:has(> :not([hidden]))) { + display: none; +} + +.r:has(> .r-link) > .r-tray { + pointer-events: auto; +} + +.r-note { + margin: 0; + font-size: var(--text-xs); + color: var(--ink-muted); +} + +.r-note[data-tone="fault"] { + color: var(--signal-fault); +} + +.r-note[data-tone="warn"] { + color: var(--signal-warn); +} + +/* the ⋯ tray: the row's other actions, labelled, full width */ +.r-morepanel { + display: grid; + gap: var(--space-2); +} + +.r-morepanel .control, +.r-morepanel .toggle { + width: 100%; + justify-content: flex-start; +} + +.r-morepanel .control .icon { + margin-right: var(--space-1); +} + +.r-empty { + display: flex; + align-items: center; + gap: var(--space-2); + min-height: var(--row-min); + padding: var(--space-2) 0; + font-size: var(--text-xs); + color: var(--ink-muted); + border-bottom: 1px solid oklch(from var(--line) l c h / 60%); +} + +.r-empty[data-tone="fault"] { + color: var(--signal-fault); +} + +/* row leads */ +.row-poster, +.row-poster-blank { + display: block; + width: 2.25rem; + aspect-ratio: 2 / 3; + flex: none; + object-fit: cover; + background: var(--panel-raised); + border: 1px solid var(--line); + border-radius: 3px; +} + +.lead-tag { + width: var(--control-h); + text-align: center; + font-size: var(--text-xs); + font-weight: 600; + color: var(--ink-faint); +} + +.lead-lamp { + display: flex; + width: var(--space-4); + justify-content: center; +} + +/* score: the release's lead, on the list-relative heat scale (issue 111) */ +.score { + display: inline-grid; + place-items: center; + width: var(--control-h); + height: var(--control-h); + font-family: var(--font-readout); + font-size: var(--text-sm); + font-weight: 700; + font-variant-numeric: tabular-nums; + color: var(--ink-muted); + border: 1px solid var(--line); + border-radius: var(--radius); +} + +.score[data-score="0"] { + color: var(--score-0); + border-color: oklch(from var(--score-0) l c h / 50%); +} +.score[data-score="1"] { + color: var(--score-1); + border-color: oklch(from var(--score-1) l c h / 50%); +} +.score[data-score="2"] { + color: var(--score-2); + border-color: oklch(from var(--score-2) l c h / 50%); +} +.score[data-score="3"] { + color: var(--score-3); + border-color: oklch(from var(--score-3) l c h / 50%); +} +.score[data-score="4"] { + color: var(--score-4); + border-color: oklch(from var(--score-4) l c h / 50%); +} +.score[data-score="5"] { + color: var(--score-5); + border-color: oklch(from var(--score-5) l c h / 50%); +} +.score[data-score="6"] { + color: var(--score-6); + border-color: oklch(from var(--score-6) l c h / 50%); +} + +/* season disclosure: the lead of a season row */ +.r-lead .disclose-lead { + border-color: var(--line); + background: transparent; + box-shadow: none; + color: var(--ink-muted); +} + +.disclose-lead .icon { + transition: transform 200ms var(--ease-out); +} + +.disclose-lead[aria-expanded="true"] .icon { + transform: rotate(90deg); +} + +.r[data-row="season"] > .r-body > .r-title { + font-family: var(--font-display); + font-size: var(--text-base); + font-weight: 700; + letter-spacing: 0.08em; + text-transform: uppercase; +} + +.episodes { + margin: 0; + padding: 0; + list-style: none; + background: oklch(from var(--panel) l c h / 50%); +} + +/* release cells: the §9.3 fixed columns, from 46rem; the chips carry them below */ +.r-cells, +.colhead { + display: none; +} + +.colhead-cells, +.r-cells { + grid-template-columns: 4rem 4.5rem 4.5rem 6rem 7rem 3.5rem; + gap: var(--space-4); +} + +.r-cells > span { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-family: var(--font-readout); + font-size: var(--text-xs); + font-variant-numeric: tabular-nums; + color: var(--ink-muted); +} + +.r-cells > .num, +.colhead-cells > .num { + text-align: right; +} + +.r-cells > .unclaimed { + color: var(--ink-faint); +} + +.colhead { + grid-template-columns: var(--control-h) minmax(0, 1fr) var(--word-w); + column-gap: var(--space-3); + padding: var(--space-2) 0 var(--space-1); + border-bottom: 1px solid oklch(from var(--line) l c h / 60%); +} + +.colhead-cells { + grid-column: 2; + display: grid; +} + +.colhead-score, +.colhead-cells > span { + font-family: var(--font-readout); + font-size: var(--text-2xs); + text-transform: uppercase; + letter-spacing: 0.04em; + color: var(--ink-faint); +} + +/* skeleton: the row's own geometry, no shimmer (Dead-Air) */ +.r-skel { + pointer-events: none; +} + +.skel { + display: block; + background: var(--panel-raised); + border-radius: 3px; +} + +.skel-lead { + width: 2.25rem; + height: 3.375rem; +} + +.skel-line { + width: 70%; + height: 0.75rem; +} + +.skel-short { + width: 40%; +} + +@container (min-width: 40rem) { + .r-meta [data-pri="2"] { + display: inline-flex; + } + + .r-slot[data-wide] { + display: flex; + } + + .r-slot[data-narrow], + .r-morepanel { + display: none; + } + + .r-title { + font-size: var(--text-base); + } +} + +@container (min-width: 46rem) { + .r[data-row="release"] .r-meta [data-cell] { + display: none; + } + + .r[data-row="release"] .r-cells, + .colhead { + display: grid; + } +} + +/* ---- poster grid (§9.6, issue 151) -------------------------------------- */ + +.deck-rows.grid-rows { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); + gap: var(--space-3); + padding-top: var(--space-3); +} + +.card { + display: flex; + flex-direction: column; + width: 100%; + height: 100%; + padding: 0; + font: inherit; + text-align: left; + color: inherit; + background: var(--panel); + border: 1px solid var(--line); + border-radius: var(--radius); + overflow: hidden; + cursor: pointer; + transition: border-color 150ms var(--ease-out); +} + +.card:hover { + border-color: var(--accent); +} + +.card-art { + display: block; + aspect-ratio: 2 / 3; + background: var(--panel-raised); +} + +.card-poster { + display: block; + width: 100%; + height: 100%; + object-fit: cover; +} + +/* same ratio as a poster, carrying the title: the grid never has a hole */ +.card-blank { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; + padding: var(--space-3); +} + +.card-blank-title { + font-family: var(--font-display); + font-size: var(--text-base); + font-weight: 600; + text-align: center; + color: var(--ink-faint); +} + +.card-body { + display: grid; + gap: var(--space-1); + padding: var(--space-2); +} + +.card-name { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: var(--text-sm); + font-weight: 600; + color: var(--ink); +} + +.card-chips { + display: flex; + gap: var(--space-1); + min-height: var(--chip-h); + overflow: hidden; +} + +.card-skel .card-art { + background: var(--panel-raised); +} + +/* ---- search rows and the add flow (§9.2) ---------------------------------- */ + +.add-panel { + display: grid; + gap: var(--space-3); + padding: var(--space-3); + background: var(--panel); + border: 1px solid var(--line); + border-radius: var(--radius); + box-shadow: inset 0 1px var(--highlight); +} + +.add-roots { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); + gap: var(--space-2); +} + +.root-option { + display: grid; + gap: var(--space-1); + min-height: var(--control-h); + padding: var(--space-2) var(--space-3); + font: inherit; + text-align: left; + color: var(--ink); + background: var(--panel-raised); + border: 1px solid var(--line); + border-radius: var(--radius); + cursor: pointer; + transition: border-color 150ms var(--ease-out); +} + +.root-option:hover:not(:disabled) { + border-color: var(--line-strong); +} + +.root-option[aria-pressed="true"] { + border-color: var(--accent); +} + +.root-option:disabled { + cursor: default; + opacity: 0.6; +} + +.root-audience { + font-family: var(--font-display); + font-size: var(--text-md); + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.12em; + line-height: 1; +} + +.root-policy, +.root-path { + font-size: var(--text-xs); +} + +.add-actions { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: var(--space-3); +} + +.add-autotrack { + display: grid; + justify-items: start; + gap: var(--space-1); +} + +.add-note { + margin: 0; + font-size: var(--text-xs); + color: var(--ink-muted); +} + +.add-note[data-tone="fault"] { + color: var(--signal-fault); +} + +.add-note[data-tone="ok"] { + color: var(--signal-ok); +} + +/* ---- title detail (§9.6) ---------------------------------------------------- */ + +/* the hero: back and title, then poster and what the title IS, over the + backdrop sunk into the console charcoal by a scrim */ +.hero { + position: relative; + overflow: hidden; + margin-bottom: var(--space-3); + padding: var(--space-2) var(--gutter) var(--space-4); +} + +.hero::before { + content: ""; + position: absolute; + inset: 0; + background-image: var(--backdrop); + background-size: cover; + background-position: center 20%; + opacity: 0; + transition: opacity 400ms var(--ease-out); +} + +.hero.has-backdrop::before { + opacity: 1; +} + +.hero::after { + content: ""; + position: absolute; + inset: 0; + background: + linear-gradient( + to top, + oklch(from var(--ground) l c h / 96%) 0%, + oklch(from var(--ground) l c h / 78%) 50%, + oklch(from var(--ground) l c h / 55%) 100% + ), + oklch(from var(--ground) l c h / 30%); +} + +.hero > * { + position: relative; + z-index: 1; +} + +.page-head { + display: flex; + align-items: center; + gap: var(--space-2); + min-height: var(--control-h); + margin-bottom: var(--space-3); +} + +/* a detail page without a hero still gives its head room under the rail */ +.deck.detail > .page-head { + padding-top: var(--space-2); +} + +.page-head .page-title { + flex: 0 1 auto; +} + +.page-head > .control-icon { + flex: none; + border-color: transparent; + background: transparent; + box-shadow: none; +} + +.page-id { + display: grid; + min-width: 0; +} + +.page-year, +.page-sub { + flex: none; + font-size: var(--text-xs); + color: var(--ink-muted); +} + +.page-sub { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +/* the title is known before the page is: a bar the title's own size */ +.page-title:empty::before, +[data-loading] .page-title::before { + content: ""; + display: inline-block; + width: 12rem; + height: 1em; + vertical-align: middle; + background: var(--panel-raised); + border-radius: 3px; +} + +.hero-body { + display: grid; + grid-template-columns: 6rem minmax(0, 1fr); + gap: var(--space-4); + align-items: start; +} + +/* the poster's box is there before the poster is */ +.hero-poster { + aspect-ratio: 2 / 3; + background: var(--panel-raised); + border: 1px solid var(--line-strong); + border-radius: var(--radius); + overflow: hidden; +} + +.movie-poster { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + opacity: 0; + transition: opacity 300ms var(--ease-out); +} + +.movie-poster[data-loaded] { + opacity: 1; +} + +.hero-info { + display: grid; + gap: var(--space-2); + align-content: start; + min-width: 0; +} + +.hero-chips { + display: flex; + flex-wrap: wrap; + gap: var(--space-1); + min-height: var(--chip-h); +} + +/* each line keeps its height while empty, so the hero never grows in steps */ +.hero-rating, +.hero-meta { + display: flex; + align-items: center; + gap: var(--space-1); + min-height: 1.25rem; + margin: 0; + font-size: var(--text-xs); + color: var(--ink-muted); +} + +.hero-rating { + color: var(--ink); +} + +.hero-tagline { + display: none; + margin: 0; + font-family: var(--font-display); + font-size: var(--text-md); + font-weight: 600; + color: var(--ink-muted); +} + +/* three lines, reserved, a tap opens the rest */ +.hero-overview { + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + min-height: 4.5em; + max-width: 65ch; + margin: 0; + overflow: hidden; + font-size: var(--text-sm); + color: var(--ink); + cursor: pointer; +} + +.hero-overview[data-full] { + -webkit-line-clamp: unset; +} + +.hero-note { + margin-top: var(--space-2); +} + +/* one action bar: the primary word, the links as glyphs, the rest behind ⋯ */ +.actionbar { + display: flex; + align-items: center; + gap: var(--space-2); + min-height: var(--control-h); + margin-bottom: var(--space-3); +} + +.actionbar-links { + display: flex; + flex: 1; + align-items: center; + gap: var(--space-2); + min-width: 0; +} + +.actionbar > .control-icon:last-child { + margin-left: auto; +} + +.trailer-link .control-word { + display: none; +} + +.more-panel { + display: grid; + gap: var(--space-3); + margin-bottom: var(--space-4); + padding: var(--space-3); + background: var(--panel); + border: 1px solid var(--line); + border-radius: var(--radius); + box-shadow: inset 0 1px var(--highlight); +} + +.more-links { + display: flex; + flex-wrap: wrap; + gap: var(--space-2); +} + +.more-links:empty { + display: none; +} + +.more-toggles { + display: grid; + gap: var(--space-2); +} + +.more-toggles .toggle, +.more-panel > .control { + width: 100%; + justify-content: flex-start; +} + +.more-field { + display: grid; +} + +.control-note { + margin: 0; + font-size: var(--text-xs); + color: var(--ink-muted); +} + +@container (min-width: 40rem) { + .hero { + padding-top: var(--space-4); + } + + .hero-body { + grid-template-columns: 9rem minmax(0, 1fr); + gap: var(--space-6); + } + + .hero-tagline { + display: block; + } + + .page-title { + font-size: var(--text-xl); + } + + .trailer-link .control-word { + display: inline; + } + + .trailer-link { + width: auto; + padding: 0 var(--space-4); + } + + .more-panel { + grid-template-columns: repeat(2, minmax(0, 1fr)); + align-items: end; + } + + .more-toggles { + grid-template-columns: repeat(2, minmax(0, 1fr)); + grid-column: 1 / -1; + } + + .more-panel > .remove-panel, + .more-panel > .more-links, + .more-panel > .control-note { + grid-column: 1 / -1; + } +} + +@container (min-width: 64rem) { + .hero-body { + grid-template-columns: 10.5rem minmax(0, 1fr); + } +} + +/* ---- removal confirmation (§7.4, issue 104) ------------------------------- */ + +.remove-body { + display: grid; + gap: var(--space-2); + padding: var(--space-3); + background: var(--panel-raised); + border: 1px solid var(--line); + border-radius: var(--radius); +} + +.remove-body[data-armed="true"] { + border-color: oklch(from var(--signal-warn) l c h / 55%); +} + +.remove-evidence, +.remove-path, +.remove-note { + margin: 0; + font-size: var(--text-xs); +} + +/* the folder is evidence: it wraps rather than truncating */ +.remove-path { + color: var(--ink-muted); + overflow-wrap: anywhere; + white-space: pre-line; +} + +.remove-note { + color: var(--ink-muted); +} + +.remove-note[data-tone="warn"] { + color: var(--signal-warn); +} + +.remove-note[data-tone="fault"] { + color: var(--signal-fault); +} + +.remove-actions { + display: flex; + flex-wrap: wrap; + gap: var(--space-2); +} + +.remove-body[data-armed="true"] .remove-actions .control:first-child:not(:disabled) { + color: var(--signal-warn); + border-color: oklch(from var(--signal-warn) l c h / 55%); +} + +/* ---- release deck (§9.3) ------------------------------------------------- */ + +.buckets { + container-type: inline-size; +} + +.bucket-more { + padding-top: var(--space-3); +} + +/* #227: a pack abandoned at import, above the candidates — a quiet panel */ +.deck-notice { + margin-bottom: var(--space-6); + padding: var(--space-3) var(--space-4) var(--space-4); + background: var(--panel); + border: 1px solid var(--line); + border-radius: var(--radius); +} + +.deck-notice[data-blacklist="policy"] { + background: oklch(from var(--signal-warn) l c h / 7%); + border-color: oklch(from var(--signal-warn) l c h / 40%); +} + +.deck-notice[data-blacklist="release"] { + background: oklch(from var(--signal-fault) l c h / 7%); + border-color: oklch(from var(--signal-fault) l c h / 40%); +} + +.deck-notice .deck-label { + margin-bottom: var(--space-2); +} + +.deck-notice[data-blacklist="policy"] .deck-label { + color: var(--signal-warn); +} + +.deck-notice[data-blacklist="release"] .deck-label { + color: var(--signal-fault); +} + +.notice-release { + margin: 0 0 var(--space-2); + overflow-wrap: anywhere; + font-size: var(--text-xs); + color: var(--ink); +} + +.notice-line { + margin: 0; + max-width: 68ch; + font-size: var(--text-sm); + color: var(--ink-muted); +} + +.notice-line + .notice-line { + margin-top: var(--space-2); +} + +.r-why { + font-size: var(--text-xs); + color: var(--ink-muted); +} + +.r-why[data-blacklist="release"] { + color: oklch(from var(--signal-fault) 0.78 0.1 h); +} + +/* ---- subtitles (§15, §9.6) -------------------------------------------- */ + +/* the one subtitle chip a file's row carries: it opens the panel */ +.subs-chip .icon { + opacity: 0.7; +} + +.subs-chip:hover, +.subs-chip:focus-visible, +.subs-chip[aria-expanded="true"] { + border-color: currentColor; +} + +/* the languages read as one string, as wide as the wanted set can need */ +.subs-chip-langs { + display: inline-flex; + align-items: baseline; + flex: none; + overflow: hidden; + white-space: nowrap; +} + +/* the check has its slot whether or not it is drawn */ +.subs-chip-mark { + display: inline-flex; + flex: none; + justify-content: center; + width: 0.75rem; +} + +.subs-chip-langs [data-mt="true"] { + text-decoration: underline dotted; + text-underline-offset: 2px; +} + +.subs-panel { + container-type: inline-size; + min-width: 0; + padding: var(--space-3); + background: var(--panel); + border: 1px solid var(--line); + border-radius: var(--radius); +} + +.subs-panel .deck-group { + margin-bottom: var(--space-4); +} + +.subs-panel .deck-group:last-child { + margin-bottom: 0; +} + +.subs-present { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: var(--space-1); + padding-top: var(--space-3); +} + +.subs-present > p { + margin: 0; + font-size: var(--text-xs); +} + +.subs-controls { + display: flex; + flex-wrap: wrap; + align-items: flex-end; + gap: var(--space-2) var(--space-3); + padding-top: var(--space-3); +} + +.subs-langs { + display: flex; + flex-wrap: wrap; + gap: var(--space-1); +} + +.subs-field { + flex: 1 1 12rem; + min-width: 9rem; + max-width: 18rem; +} + +.subs-field-narrow { + flex: 0 1 9rem; + max-width: 11rem; +} + +.subs-note { + margin: var(--space-2) 0 0; + font-size: var(--text-xs); + color: var(--ink-muted); +} + +.subs-note[data-tone="fault"] { + color: var(--signal-fault); +} + +.subs-buckets { + margin-top: var(--space-3); +} + +.subs-buckets .deck-group { + margin-bottom: var(--space-3); +} + +/* ---- settings (issue #116) -------------------------------------------- */ + +.form-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); + gap: var(--space-3); + align-items: end; +} + +.field { + display: grid; + gap: var(--space-1); +} + +.field-label { + font-size: var(--text-2xs); + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.12em; + color: var(--ink-muted); +} + +.form-input { + width: 100%; + min-height: var(--control-h); + padding: 0 var(--space-3); + font-family: var(--font-readout); + font-size: var(--text-base); + color: var(--ink); + background: var(--ground); + border: 1px solid var(--line); + border-radius: var(--radius); + box-shadow: inset 0 1px var(--lowlight); + caret-color: var(--accent); + transition: border-color 150ms var(--ease-out); +} + +.form-input:hover { + border-color: var(--line-strong); +} + +.form-input:focus { + border-color: var(--accent); + outline: none; +} + +.form-input:disabled { + color: var(--ink-faint); + border-color: var(--line); +} + +/* a select draws its own chevron: appearance is gone, so the shape returns */ +select.form-input { + appearance: none; + padding-right: var(--space-8); + background-image: + linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), + linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); + background-position: + calc(100% - 1.1rem) 50%, + calc(100% - 0.8rem) 50%; + background-size: 0.3rem 0.3rem; + background-repeat: no-repeat; +} + +.form-input[data-invalid] { + border-color: var(--signal-fault); +} + +.band-line { + display: flex; + align-items: center; + gap: var(--space-2); +} + +.band-line .field-label { + width: 3.5rem; +} + +/* four numbers and a label must share a phone's width, so the inputs shrink + rather than push the line past the gutter */ +.band-num { + flex: 1 1 0; + min-width: 0; + max-width: 4.5rem; +} + +.subtitle-panel .field-label { + display: block; + margin: var(--space-4) 0 var(--space-2); +} + +.provider-list { + margin: 0 0 var(--space-3); + padding: 0; + list-style: none; +} + +.provider-toggle { + width: 1.25rem; + height: 1.25rem; + margin: 0; + accent-color: var(--accent); +} + +.provider-budget { + width: 5.5rem; +} + +@media (min-width: 40rem) { + .form-input { + font-size: var(--text-sm); + } +} + +/* ---- signal chain (§9.7: a settings section) ------------------------------- */ + +.chain-wrap { + container-type: inline-size; + padding-top: var(--space-4); +} + +/* the phone stacks the chain into one junctioned trace */ +.chain { + width: 100%; + display: grid; + grid-template-columns: 1fr; + grid-template-areas: + "tmdb" + "prow" + "t1" + "master" + "out" + "sink"; + align-items: center; + row-gap: var(--space-3); +} + +.area-tmdb { + grid-area: tmdb; +} + +.area-prowlarr { + grid-area: prow; +} + +.area-t1 { + grid-area: t1; +} + +.area-t2 { + display: none; +} + +.area-master { + grid-area: master; +} + +.area-out { + grid-area: out; +} + +.area-qbittorrent { + grid-area: sink; +} + +.chain-lane { + margin-top: var(--space-4); + display: grid; + grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); + gap: var(--space-3); + align-items: stretch; +} + +.module { + min-width: 0; + background: var(--panel); + border: 1px solid var(--line); + border-radius: var(--radius); + box-shadow: inset 0 1px var(--highlight); + padding: var(--space-4) var(--space-4) var(--space-3); +} + +.module-master { + background: var(--panel-raised); + border-color: var(--line-strong); +} + +.module-head { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: var(--space-1) var(--space-2); +} + +.module-name { + margin: 0; + font-family: var(--font-display); + font-size: var(--text-md); + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.12em; + line-height: 1; +} + +.module-master .module-name { + font-size: var(--text-lg); +} + +.module-status { + margin-left: auto; + padding-left: var(--space-3); + color: var(--ink-muted); +} + +.module-status[data-tone="ok"] { + color: var(--signal-ok); +} + +.module-status[data-tone="warn"] { + color: var(--signal-warn); +} + +.module-status[data-tone="fault"] { + color: var(--signal-fault); +} + +.module-role { + margin: var(--space-2) 0 0; + font-size: var(--text-2xs); + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.12em; + color: var(--ink-muted); +} + +.module-detail { + margin: var(--space-1) 0 0; + min-height: 1.2em; + font-size: var(--text-xs); + color: var(--ink-muted); +} + +.intake .module-detail { + overflow-wrap: anywhere; +} + +.bus { + display: grid; + align-content: center; + justify-items: center; + height: 2rem; +} + +.bus svg { + transform: rotate(90deg); + width: 2rem; +} + +.bus-trace { + --trace: var(--line-strong); + width: 100%; + height: 0.5rem; + display: block; + transition: filter 300ms var(--ease-out); +} + +.bus-trace line { + stroke: var(--trace); + stroke-width: 1; +} + +.bus-arrow { + fill: var(--trace); +} + +.bus-trace[data-tone="ok"] { + --trace: var(--signal-ok); +} + +.bus-trace[data-tone="warn"] { + --trace: var(--signal-warn); +} + +.bus-trace[data-tone="fault"] { + --trace: var(--signal-fault); +} + +@container (min-width: 46rem) { + .chain { + grid-template-columns: 1fr 2.5rem 1.2fr 2.5rem 1fr; + grid-template-areas: + "tmdb t1 master out sink" + "prow t2 master out sink"; + row-gap: var(--space-6); + } + + .area-t2 { + display: grid; + grid-area: t2; + } + + .bus { + height: auto; + } + + .bus svg { + transform: none; + width: 100%; + } + + .module-master { + padding: var(--space-6) var(--space-4) var(--space-4); + } +} + +@media (prefers-reduced-motion: reduce) { + *, + *::before { + /* biome-ignore lint/complexity/noImportantStyles: reduced motion overrides every transition */ + transition: none !important; + } + + .lamp[data-state="probing"], + .chain.powered .lamp { + animation: none; + } +} diff --git a/web/src/icons.ts b/web/src/icons.tsx similarity index 100% rename from web/src/icons.ts rename to web/src/icons.tsx diff --git a/web/src/main.ts b/web/src/main.tsx similarity index 100% rename from web/src/main.ts rename to web/src/main.tsx diff --git a/web/src/style.css b/web/src/style.css index a0fb1a4..25422f5 100644 --- a/web/src/style.css +++ b/web/src/style.css @@ -1,2718 +1,87 @@ -/* arr — master-control board, revision 2 (mobile first). - Tokens mirror .impeccable/design.json; components consume tokens, never - literals. Committed dark: a control room is lit by its lamps. - The phone is the base layout: rules here are the 390px truth, and the - min-width queries at the end of each block add room as it appears. Rows - answer to their container (`.deck` and every inline panel are containers), - so a row lays out the same in a narrow panel as on a narrow screen. */ - -@font-face { - font-family: "Rajdhani"; - font-style: normal; - font-weight: 600; - font-display: swap; - src: url("/fonts/rajdhani-600-latin.woff2") format("woff2"); -} - -@font-face { - font-family: "Rajdhani"; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url("/fonts/rajdhani-700-latin.woff2") format("woff2"); -} - -:root { - /* ground and panels */ - --ground: oklch(0.14 0.01 250); - --panel: oklch(0.18 0.012 250); - --panel-raised: oklch(0.21 0.014 250); - --line: oklch(0.3 0.015 250); - --line-strong: oklch(0.42 0.02 250); - --highlight: oklch(1 0 0 / 4%); - - /* ink */ - --ink: oklch(0.93 0.008 250); - --ink-muted: oklch(0.72 0.015 250); - --ink-faint: oklch(0.58 0.015 250); - - /* signal lamps: ok on disk, warn needs you or armed, fault broken */ - --signal-ok: oklch(0.8 0.17 150); - --signal-warn: oklch(0.82 0.14 80); - --signal-fault: oklch(0.68 0.21 25); - --signal-idle: oklch(0.45 0.02 250); - - /* the one interactive hue */ - --accent: oklch(0.8 0.12 220); - --accent-bright: oklch(0.88 0.12 220); - - /* dead lamp and pressed-control lowlight */ - --lamp-off: oklch(0.3 0.012 250); - --lowlight: oklch(0 0 0 / 30%); - - /* release verdicts (§9.3) — rejected is quiet slate, never fault red */ - --verdict-eligible: oklch(0.8 0.17 150); - --verdict-waived: oklch(0.82 0.14 80); - --verdict-rejected: oklch(0.68 0.02 250); - - /* score heat scale (issue #111) — list-relative, lowest red to highest green */ - --score-0: oklch(0.68 0.19 25); - --score-1: oklch(0.7 0.185 46); - --score-2: oklch(0.72 0.175 67); - --score-3: oklch(0.75 0.165 88); - --score-4: oklch(0.77 0.16 108); - --score-5: oklch(0.79 0.165 129); - --score-6: oklch(0.8 0.17 150); - - /* activity: airing, downloading */ - --status-airing: oklch(0.78 0.14 305); - - /* type */ - --font-label: system-ui, -apple-system, "Segoe UI", sans-serif; - --font-readout: - ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace; - --font-display: "Rajdhani", "Avenir Next Condensed", "Arial Narrow", sans-serif; - - --text-2xs: 0.6875rem; - --text-xs: 0.75rem; - --text-sm: 0.8125rem; - --text-base: 1rem; - --text-md: 1.0625rem; - --text-lg: 1.3125rem; - --text-xl: 1.625rem; - - /* rhythm */ - --space-1: 0.25rem; - --space-2: 0.5rem; - --space-3: 0.75rem; - --space-4: 1rem; - --space-6: 1.5rem; - --space-8: 2rem; - --space-12: 3rem; - - --radius: 4px; - --ease-out: cubic-bezier(0.25, 1, 0.5, 1); - - /* geometry: a 44px touch target, a 24px chip, one row height */ - --control-h: 2.75rem; - --chip-h: 1.5rem; - --row-min: 3.5rem; - --toggle-w: 8.5rem; - --word-w: 5.5rem; - --rail-h: 3.25rem; - --tabbar-h: 3.5rem; - - /* the device's own edges */ - --safe-top: env(safe-area-inset-top, 0px); - --safe-bottom: env(safe-area-inset-bottom, 0px); - --gutter: max(var(--space-4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); - --tabbar-space: calc(var(--tabbar-h) + var(--safe-bottom)); -} - -/* the tab bar becomes rail links */ -@media (min-width: 40rem) { - :root { - --tabbar-space: 0px; - --word-w: 7.5rem; - } -} - -/* dense only where a mouse and room both exist */ -@media (pointer: fine) and (min-width: 64rem) { - :root { - --control-h: 2.25rem; - --row-min: 3rem; - --toggle-w: 8rem; - } -} - -* { - box-sizing: border-box; -} - -html, -body { - margin: 0; - padding: 0; -} - -html { - scroll-padding-top: var(--rail-h); - -webkit-text-size-adjust: 100%; -} - -body { - min-height: 100dvh; - display: flex; - flex-direction: column; - padding-bottom: var(--tabbar-space); - background: var(--ground); - color: var(--ink); - font-family: var(--font-label); - font-size: var(--text-base); - line-height: 1.5; - -webkit-tap-highlight-color: transparent; -} - -::selection { - background: oklch(from var(--accent) l c h / 35%); - color: var(--ink); -} - -* { - scrollbar-color: var(--line-strong) transparent; -} - -.readout { - font-family: var(--font-readout); - font-size: var(--text-sm); - font-variant-numeric: tabular-nums; -} - -.dim { - color: var(--ink-muted); -} - -:focus-visible { - outline: 2px solid var(--accent); - outline-offset: 2px; -} - -/* a heading focused on navigation is a reading position, not a control */ -[tabindex="-1"]:focus { - outline: none; -} - -/* hidden wins over every display rule a component sets; the one exception is - a status slot, which keeps its line while empty */ -[hidden]:not(.deck-status) { - /* biome-ignore lint/complexity/noImportantStyles: `hidden` must beat component display rules */ - display: none !important; -} - -/* ---- lamps ------------------------------------------------------------ */ - -.lamp { - --lamp: var(--signal-idle); - width: 0.625rem; - height: 0.625rem; - flex: none; - border-radius: 50%; - background: var(--lamp); - /* the panel's own device: a lit indicator, not a depth shadow */ - box-shadow: - 0 0 6px var(--lamp), - 0 0 14px oklch(from var(--lamp) l c h / 35%); - transition: background 300ms var(--ease-out); -} - -.lamp-big { - width: 0.875rem; - height: 0.875rem; -} - -.lamp[data-state="ok"] { - --lamp: var(--signal-ok); -} - -.lamp[data-state="unconfigured"], -.lamp[data-state="degraded"], -.lamp[data-state="warn"] { - --lamp: var(--signal-warn); -} - -.lamp[data-state="unreachable"] { - --lamp: var(--signal-fault); -} - -.lamp[data-state="probing"] { - --lamp: var(--signal-idle); - animation: lamp-probe 1.2s var(--ease-out) infinite alternate; -} - -/* dead air: dark, no glow, no motion */ -.lamp[data-state="off"] { - --lamp: var(--lamp-off); - box-shadow: none; -} - -@keyframes lamp-probe { - from { - opacity: 0.45; - } - to { - opacity: 1; - } -} - -/* power-up: lamps flicker on upstream to downstream, once, on first verdict */ -@keyframes lamp-strike { - 0% { - opacity: 0.2; - } - 40% { - opacity: 1; - } - 55% { - opacity: 0.35; - } - 100% { - opacity: 1; - } -} - -.chain.powered .lamp { - animation: lamp-strike 420ms var(--ease-out) both; - animation-delay: calc(var(--strike, 0) * 120ms); -} - -.chain.powered .lamp[data-state="off"] { - animation: none; -} - -/* ---- type roles --------------------------------------------------------- */ - -/* one role per job: page title, section, group label, row title, readout */ -.page-title { - margin: 0; - min-width: 0; - font-family: var(--font-display); - font-size: var(--text-lg); - font-weight: 700; - letter-spacing: 0.04em; - line-height: 1.1; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} - -.section-title { - margin: 0; - font-family: var(--font-display); - font-size: var(--text-md); - font-weight: 600; - letter-spacing: 0.08em; - text-transform: uppercase; - line-height: 1.2; - color: var(--ink-muted); -} - -/* the engraved micro-label: a group inside a section, never a kicker */ -.deck-label { - margin: 0; - font-size: var(--text-2xs); - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.12em; - color: var(--ink-muted); -} - -.deck-count { - font-size: var(--text-xs); - color: var(--ink-faint); -} - -/* ---- controls ------------------------------------------------------------- */ - -/* primary: cyan word on a raised plate — one per header or panel */ -.control { - display: inline-flex; - align-items: center; - justify-content: center; - gap: var(--space-2); - min-height: var(--control-h); - padding: 0 var(--space-4); - font-family: var(--font-readout); - font-size: var(--text-xs); - font-weight: 600; - font-variant-numeric: tabular-nums; - line-height: 1; - text-transform: uppercase; - letter-spacing: 0.08em; - white-space: nowrap; - text-decoration: none; - color: var(--accent); - background: var(--panel-raised); - border: 1px solid var(--line-strong); - border-radius: var(--radius); - box-shadow: inset 0 1px var(--highlight); - cursor: pointer; - transition: - border-color 150ms var(--ease-out), - color 150ms var(--ease-out), - background 150ms var(--ease-out); -} - -.control:hover:not(:disabled) { - border-color: var(--accent); - color: var(--accent-bright); -} - -.control:active:not(:disabled) { - box-shadow: inset 0 1px var(--lowlight); -} - -.control:disabled { - color: var(--ink-faint); - border-color: var(--line); - cursor: default; -} - -.control[data-busy] { - color: var(--ink-faint); - border-style: dashed; - cursor: progress; -} - -.control[data-done] { - color: var(--signal-ok); - border-color: oklch(from var(--signal-ok) l c h / 55%); -} - -.control[data-failed] { - color: var(--signal-fault); - border-color: oklch(from var(--signal-fault) l c h / 55%); -} - -/* quiet: secondary actions — cancel, add, back, retry. Never a toggle. */ -.control-quiet { - color: var(--ink); - background: transparent; - border-color: var(--line); - box-shadow: none; -} - -/* a word control whose label changes keeps one width */ -.control-fixed { - min-width: var(--word-w); -} - -/* icon: a square glyph, the accessible name carries the meaning */ -.control-icon { - width: var(--control-h); - min-width: var(--control-h); - padding: 0; -} - -.control[aria-expanded="true"] { - border-color: var(--accent); - color: var(--accent-bright); -} - -/* destructive rests red, so delete never reads like the glyph beside it */ -.control[data-kind="delete"]:not(:disabled) { - color: var(--signal-fault); -} - -.control[data-kind="delete"]:hover:not(:disabled), -.control[data-kind="delete"]:focus-visible:not(:disabled) { - border-color: var(--signal-fault); - color: var(--signal-fault); -} - -/* armed: the same square, now an amber check — the next tap fires */ -.control[data-armed="true"]:not(:disabled), -.control[data-armed="true"]:hover:not(:disabled) { - color: var(--ground); - background: var(--signal-warn); - border-color: var(--signal-warn); -} - -.icon { - display: block; - flex: none; - width: 1rem; - height: 1rem; - fill: none; - stroke: currentColor; - stroke-width: 1.5; - stroke-linecap: round; - stroke-linejoin: round; -} - -.icon[data-icon="more"] { - stroke-width: 2.2; -} - -.icon[data-icon="play"] { - fill: currentColor; - stroke-width: 1; -} - -/* provider wordmark badges (§9.6): drawn inline, monochrome */ -.icon-mark { - width: auto; - height: 1.125rem; -} - -.icon-mark rect { - stroke-width: 1.6; -} - -.icon-mark text { - fill: currentColor; - stroke: none; - font-family: var(--font-readout); - font-weight: 700; - letter-spacing: 0.06em; -} - -/* the chip-scale delete (#251): no plate, the armed glyph does the word's job */ -.control-micro { - display: inline-flex; - align-items: center; - justify-content: center; - width: 1rem; - height: 1rem; - padding: 0; - margin-inline-start: var(--space-1); - color: var(--ink-faint); - background: none; - border: 0; - border-radius: 2px; - cursor: pointer; -} - -.control-micro .icon { - width: 0.75rem; - height: 0.75rem; -} - -.control-micro:hover:not(:disabled), -.control-micro:focus-visible { - color: var(--signal-fault); - background: oklch(from var(--signal-fault) l c h / 15%); -} - -.control-micro[data-armed="true"] { - color: var(--ground); - background: var(--signal-warn); -} - -.control-micro:disabled { - opacity: 0.5; -} - -/* disclosure: full control height, the chevron turns, the plate holds its width */ -.disclose { - justify-content: space-between; - min-width: 9rem; -} - -.disclose .icon { - transition: transform 200ms var(--ease-out); -} - -.disclose[aria-expanded="true"] .icon { - transform: rotate(180deg); -} - -/* lamp toggle: a rule that is on or off, lamp plus word */ -.toggle { - display: inline-flex; - align-items: center; - gap: var(--space-2); - min-height: var(--control-h); - padding: 0 var(--space-3); - font-family: var(--font-readout); - font-size: var(--text-xs); - font-weight: 600; - line-height: 1; - text-transform: uppercase; - letter-spacing: 0.08em; - white-space: nowrap; - color: var(--ink-muted); - background: transparent; - border: 1px solid var(--line); - border-radius: var(--radius); - cursor: pointer; - transition: - border-color 150ms var(--ease-out), - color 150ms var(--ease-out); -} - -.toggle:hover:not(:disabled) { - border-color: var(--accent); -} - -.toggle:disabled { - cursor: progress; - opacity: 0.6; -} - -.toggle-lamp { - width: 0.5rem; - height: 0.5rem; - flex: none; - border-radius: 50%; - background: var(--lamp-off); - transition: - background 300ms var(--ease-out), - box-shadow 300ms var(--ease-out); -} - -.toggle-state { - min-width: 3ch; - margin-left: auto; - text-align: left; - color: var(--ink-faint); -} - -.toggle[aria-pressed="true"] { - color: var(--ink); - border-color: var(--line-strong); -} - -.toggle[aria-pressed="true"] .toggle-lamp { - background: var(--accent); - box-shadow: 0 0 6px oklch(from var(--accent) l c h / 60%); -} - -.toggle[aria-pressed="true"] .toggle-state { - color: var(--accent); -} - -/* segmented: one choice of a few, the engaged side lit */ -.segmented { - display: inline-flex; - flex: none; - min-width: 0; - margin: 0; - padding: 0; - border: 0; -} - -.seg { - display: inline-flex; - align-items: center; - justify-content: center; - gap: var(--space-2); - min-height: var(--control-h); - padding: 0 var(--space-3); - font-family: var(--font-readout); - font-size: var(--text-xs); - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.08em; - color: var(--ink-muted); - background: transparent; - border: 1px solid var(--line); - cursor: pointer; - transition: - border-color 150ms var(--ease-out), - color 150ms var(--ease-out); -} - -.seg:first-child { - border-radius: var(--radius) 0 0 var(--radius); -} - -.seg:last-child { - border-radius: 0 var(--radius) var(--radius) 0; -} - -.seg + .seg { - border-left-width: 0; -} - -.seg-icon { - width: var(--control-h); - padding: 0; -} - -.seg:hover { - color: var(--accent-bright); -} - -/* the lit edge is drawn inside, so the joined borders never double */ -.seg[aria-pressed="true"] { - color: var(--accent-bright); - background: var(--panel-raised); - box-shadow: inset 0 0 0 1px var(--accent); -} - -.filter-count { - color: var(--ink-faint); - font-variant-numeric: tabular-nums; -} - -.seg[aria-pressed="true"] .filter-count { - color: var(--ink-muted); -} - -/* ---- chips ---------------------------------------------------------------- */ - -/* a label, not a target: shorter than a control, one line always */ -.chip { - display: inline-flex; - flex: none; - align-items: center; - gap: var(--space-1); - height: var(--chip-h); - padding: 0 var(--space-2); - background: var(--panel-raised); - border: 1px solid var(--line); - border-radius: 3px; - font-family: var(--font-readout); - font-size: var(--text-2xs); - font-variant-numeric: tabular-nums; - line-height: 1; - white-space: nowrap; - color: var(--ink-muted); -} - -.chip .icon { - width: 0.75rem; - height: 0.75rem; - stroke-width: 1.7; -} - -/* a chip that explains itself on tap (§9.6 tooltips have no touch) */ -.chip[data-explain], -.chip[role="button"], -button.chip { - font: inherit; - font-family: var(--font-readout); - font-size: var(--text-2xs); - cursor: pointer; - transition: - color 150ms var(--ease-out), - border-color 150ms var(--ease-out); -} - -.chip[data-explain]:hover, -.chip[data-explain][aria-expanded="true"] { - border-color: currentColor; -} - -/* release verdicts */ -.chip[data-verdict="eligible"] { - color: var(--verdict-eligible); - border-color: oklch(from var(--verdict-eligible) l c h / 45%); -} - -/* the dashed border is the visible mark of a relaxed rule */ -.chip[data-verdict="waived"] { - color: var(--verdict-waived); - border-style: dashed; - border-color: oklch(from var(--verdict-waived) l c h / 55%); -} - -.chip[data-verdict="rejected"] { - color: var(--verdict-rejected); -} - -/* a subtitle wanted and not yet on disk is the system's errand, not yours */ -.chip[data-verdict="wanted"] { - color: var(--ink); - border-color: var(--line-strong); -} - -/* #227: blacklisted at import — the policy's own floor (amber, act on it) or - the release itself broken (fault red) */ -.chip[data-blacklist="policy"] { - color: var(--signal-warn); - border-color: oklch(from var(--signal-warn) l c h / 55%); -} - -.chip[data-blacklist="release"] { - color: var(--signal-fault); - border-color: oklch(from var(--signal-fault) l c h / 55%); -} - -/* media state (§4.2): green on disk, violet downloading; wanted-and-missing - is ink — the system is on it, nothing needs you yet */ -.chip[data-movie-state="available"] { - color: var(--signal-ok); - border-color: oklch(from var(--signal-ok) l c h / 45%); -} - -.chip[data-movie-state="downloading"] { - color: var(--status-airing); - border-color: oklch(from var(--status-airing) l c h / 45%); -} - -.chip[data-movie-state="missing"][data-wanted="true"] { - color: var(--ink); - border-color: var(--line-strong); -} - -/* §9.8: the slot is refilled in place by the poll and takes no box itself */ -.dl-slot { +/* arr — the stylesheet entry. Three cascade layers, lowest first: + + theme Tailwind's theme, reset to the design tokens and nothing else + components the Master Control board (components.css): tokens, primitives, views + utilities Tailwind utilities, which win over a component rule they touch + + Tailwind's preflight is left out on purpose: components.css carries its + own base rules, and the board is the visual truth. */ + +@layer theme, components, utilities; + +@import "tailwindcss/theme.css" layer(theme); +@import "./components.css" layer(components); +@import "tailwindcss/utilities.css" layer(utilities) source(none); + +/* utilities are generated from the app's own source only, never from scripts/ */ +@source "./"; + +/* `inline`: utilities resolve straight to the token variable, so the tokens in + components.css stay the one definition (where a theme name matches a token, + the components layer's declaration wins). Every default is cleared first, so `bg-*`, `p-*` and + `text-*` offer token values only — the token gate holds for utilities too. */ +@theme inline { + --*: initial; + + --color-ground: var(--ground); + --color-panel: var(--panel); + --color-panel-raised: var(--panel-raised); + --color-line: var(--line); + --color-line-strong: var(--line-strong); + --color-highlight: var(--highlight); + --color-ink: var(--ink); + --color-ink-muted: var(--ink-muted); + --color-ink-faint: var(--ink-faint); + --color-signal-ok: var(--signal-ok); + --color-signal-warn: var(--signal-warn); + --color-signal-fault: var(--signal-fault); + --color-signal-idle: var(--signal-idle); + --color-accent: var(--accent); + --color-accent-bright: var(--accent-bright); + --color-lamp-off: var(--lamp-off); + --color-lowlight: var(--lowlight); + --color-verdict-eligible: var(--verdict-eligible); + --color-verdict-waived: var(--verdict-waived); + --color-verdict-rejected: var(--verdict-rejected); + --color-score-0: var(--score-0); + --color-score-1: var(--score-1); + --color-score-2: var(--score-2); + --color-score-3: var(--score-3); + --color-score-4: var(--score-4); + --color-score-5: var(--score-5); + --color-score-6: var(--score-6); + --color-status-airing: var(--status-airing); + + --spacing-1: var(--space-1); + --spacing-2: var(--space-2); + --spacing-3: var(--space-3); + --spacing-4: var(--space-4); + --spacing-6: var(--space-6); + --spacing-8: var(--space-8); + --spacing-12: var(--space-12); + + --text-2xs: var(--text-2xs); + --text-xs: var(--text-xs); + --text-sm: var(--text-sm); + --text-base: var(--text-base); + --text-md: var(--text-md); + --text-lg: var(--text-lg); + --text-xl: var(--text-xl); + + --font-label: var(--font-label); + --font-readout: var(--font-readout); + --font-display: var(--font-display); + + --radius-token: var(--radius); + --ease-out: var(--ease-out); + + /* the board's own breakpoints: tab bar to rail, column header, dense pointer */ + --breakpoint-sm: 40rem; + --breakpoint-md: 46rem; + --breakpoint-lg: 64rem; +} + +/* React mounts into #app; the board lays out as if the body held it directly */ +#app { display: contents; } - -/* §9.8: live download state, fixed width so 9% → 10% never moves a neighbour */ -.dl-chip { - min-width: 7ch; - justify-content: center; -} - -.dl-chip[data-dl-phase="downloading"] { - color: var(--status-airing); - border-color: oklch(from var(--status-airing) l c h / 45%); -} - -.dl-chip[data-dl-phase="stalled"] { - color: var(--signal-warn); - border-color: oklch(from var(--signal-warn) l c h / 55%); -} - -.dl-chip[data-dl-phase="errored"] { - color: var(--signal-fault); - border-color: oklch(from var(--signal-fault) l c h / 55%); -} - -.dl-chip[data-dl-phase="seeding"] { - color: var(--signal-ok); - border-color: oklch(from var(--signal-ok) l c h / 45%); -} - -/* library status (§4.2): violet while live, green once complete; incomplete - and waiting are neutral — amber is kept for what needs you */ -.chip[data-status="airing"] { - color: var(--status-airing); - border-color: oklch(from var(--status-airing) l c h / 45%); -} - -.chip[data-status="incomplete"] { - color: var(--ink); - border-color: var(--line-strong); -} - -.chip[data-status="complete"], -.chip[data-status="ended"], -.chip[data-counts="complete"] { - color: var(--signal-ok); - border-color: oklch(from var(--signal-ok) l c h / 45%); -} - -.chip[data-counts="partial"] { - color: var(--ink); -} - -/* issue 122: gone upstream while its file remained — a conflict, amber dashed */ -.chip[data-flag="vanished"] { - color: var(--signal-warn); - border-style: dashed; - border-color: oklch(from var(--signal-warn) l c h / 55%); -} - -/* a machine translation reads as machine-made (§15) — the relaxed-case dash */ -.chip[data-mt="true"] { - border-style: dashed; -} - -.chip[data-tone="fault"] { - color: var(--signal-fault); - border-color: oklch(from var(--signal-fault) l c h / 55%); -} - -/* a chip whose whole label is its glyph */ -.chip-glyph { - min-width: var(--chip-h); - justify-content: center; - padding: 0 var(--space-1); -} - -.star { - width: 0.625rem; - height: 0.625rem; - flex: none; - fill: var(--ink); -} - -/* ---- the rail and the tab bar ------------------------------------------- */ - -.rail { - position: sticky; - top: 0; - z-index: 20; - padding-top: var(--safe-top); - border-bottom: 1px solid var(--line); - background: var(--panel); - box-shadow: inset 0 1px var(--highlight); -} - -.rail-inner { - display: flex; - align-items: center; - gap: var(--space-3); - width: 100%; - max-width: 68rem; - height: var(--rail-h); - margin-inline: auto; - padding-inline: var(--gutter); -} - -.rail-id { - display: flex; - flex: none; - align-items: center; - gap: var(--space-3); - margin-right: auto; -} - -/* §9.7: the wordmark is a link home */ -.wordmark { - font-family: var(--font-display); - font-size: var(--text-xl); - font-weight: 700; - letter-spacing: 0.1em; - line-height: 1; - color: var(--ink); - text-decoration: none; -} - -.wordmark:hover, -.wordmark:focus-visible { - color: var(--accent-bright); -} - -.rail-nav { - display: none; -} - -.nav-link { - display: inline-flex; - align-items: center; - gap: var(--space-2); - min-height: var(--control-h); - padding: 0 var(--space-3); - font-family: var(--font-readout); - font-size: var(--text-xs); - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.08em; - color: var(--ink-muted); - text-decoration: none; - border-bottom: 2px solid transparent; -} - -.nav-link:hover { - color: var(--accent-bright); -} - -.nav-link[aria-current="page"] { - color: var(--accent); - border-bottom-color: var(--accent); -} - -/* attention: amber count on the queues destination, wherever it sits */ -.nav-count { - font-size: var(--text-xs); - color: var(--signal-warn); -} - -.rail-search { - position: relative; - display: none; - flex: 1; - align-items: center; - min-width: 0; -} - -.rail-search-glyph { - position: absolute; - left: var(--space-3); - color: var(--ink-faint); - pointer-events: none; -} - -.search-input { - width: 100%; - min-height: var(--control-h); - padding: 0 var(--space-8) 0 var(--space-8); - font-size: var(--text-base); - color: var(--ink); - background: var(--ground); - border: 1px solid var(--line); - border-radius: var(--radius); - box-shadow: inset 0 1px var(--lowlight); - caret-color: var(--accent); - transition: border-color 150ms var(--ease-out); -} - -.search-input::placeholder { - color: var(--ink-faint); - opacity: 1; -} - -.search-input:hover { - border-color: var(--line-strong); -} - -.search-input:focus { - border-color: var(--accent); - outline: none; -} - -.search-hint { - position: absolute; - right: var(--space-3); - display: none; - padding: 0 var(--space-1); - font-size: var(--text-2xs); - color: var(--ink-faint); - border: 1px solid var(--line); - border-radius: var(--radius); - pointer-events: none; -} - -.rail-search-close { - flex: none; - margin-left: var(--space-2); -} - -.rail-version { - display: none; - font-size: var(--text-xs); -} - -.tabbar { - position: fixed; - right: 0; - bottom: 0; - left: 0; - z-index: 20; - display: grid; - grid-template-columns: repeat(4, 1fr); - height: var(--tabbar-space); - padding-bottom: var(--safe-bottom); - background: var(--panel); - border-top: 1px solid var(--line); -} - -.tab { - position: relative; - display: grid; - place-items: center; - align-content: center; - gap: var(--space-1); - font-size: var(--text-2xs); - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.1em; - color: var(--ink-faint); - text-decoration: none; -} - -.tab[aria-current="page"] { - color: var(--accent); -} - -.tab[aria-current="page"]::before { - content: ""; - position: absolute; - top: 0; - left: 30%; - right: 30%; - height: 2px; - background: var(--accent); -} - -.tab-badge { - position: absolute; - top: var(--space-1); - left: 55%; - min-width: 1.1rem; - height: 1.1rem; - padding: 0 var(--space-1); - border-radius: 999px; - font-size: var(--text-2xs); - font-weight: 700; - line-height: 1.1rem; - text-align: center; - color: var(--ground); - background: var(--signal-warn); -} - -/* phone search mode: the field takes the rail, the identity steps aside */ -.rail[data-searching] .rail-id, -.rail[data-searching] .rail-search-open { - display: none; -} - -.rail[data-searching] .rail-search { - display: flex; -} - -@media (min-width: 40rem) { - .tabbar, - .rail-search-close { - display: none; - } - - /* biome-ignore lint/style/noDescendingSpecificity: the phone search-mode rule never applies from 40rem */ - .rail-search-open { - display: none; - } - - .rail-id { - margin-right: 0; - } - - .rail-nav { - display: flex; - align-items: center; - gap: var(--space-1); - } - - .rail-search, - .rail[data-searching] .rail-search { - display: flex; - max-width: 26rem; - margin-left: auto; - } - - .rail[data-searching] .rail-id { - display: flex; - } - - .search-input { - font-size: var(--text-sm); - } -} - -@media (min-width: 64rem) { - .search-hint, - .rail-version { - display: inline; - } -} - -/* ---- decks, pages, sections --------------------------------------------- */ - -.deck { - container-type: inline-size; - width: 100%; - max-width: 68rem; - margin: 0 auto; - padding: var(--space-4) 0 var(--space-12); - flex: 1; -} - -/* the gutter belongs to the content, so a hero can still reach both edges */ -.deck > * { - margin-inline: var(--gutter); -} - -.deck > section.hero { - margin-inline: 0; -} - -.deck.detail { - padding-top: 0; -} - -.page-bar .page-title { - text-transform: capitalize; -} - -/* a page's line: title, count, a one-line status slot, the page's controls */ -.page-bar { - display: flex; - align-items: center; - gap: var(--space-3); - min-height: var(--control-h); - margin-bottom: var(--space-4); -} - -.page-bar .deck-count { - flex: none; -} - -/* always laid out, so a message never pushes the page down */ -.head-status { - flex: 1; - min-width: 0; - margin: 0; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-size: var(--text-xs); - color: var(--ink-muted); -} - -.head-status[data-tone="fault"] { - color: var(--signal-fault); -} - -/* a section's status: one reserved line, wraps only when the sentence must */ -.deck-status { - display: flex; - align-items: center; - flex-wrap: wrap; - gap: var(--space-2) var(--space-3); - min-height: 1.5rem; - margin-bottom: var(--space-3); - font-size: var(--text-xs); - color: var(--ink-muted); -} - -.deck-status[hidden] { - visibility: hidden; -} - -.deck-status[data-tone="fault"], -.head-status[data-tone="fault"] { - color: var(--signal-fault); -} - -.deck-status .lamp, -.head-status .lamp { - display: inline-block; - margin-right: var(--space-2); -} - -.deck-group { - margin-bottom: var(--space-8); -} - -.deck-head { - display: flex; - align-items: center; - gap: var(--space-3); - min-height: var(--control-h); - padding-bottom: var(--space-1); - border-bottom: 1px solid var(--line); -} - -.deck-head .head-action, -.deck-head .disclose { - margin-left: auto; -} - -/* nested heads inside a section are group labels, one step quieter */ -.deck-group .deck-group .deck-head { - min-height: var(--chip-h); - padding-top: var(--space-3); -} - -.deck-rows { - margin: 0; - padding: 0; - list-style: none; -} - -/* one plain sentence, the long form behind a tap */ -.group-note { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: var(--space-1) var(--space-2); - padding: var(--space-2) 0 0; - font-size: var(--text-sm); - color: var(--ink-muted); -} - -.group-note p { - margin: 0; -} - -.group-note .group-note-more { - flex-basis: 100%; - max-width: 65ch; - font-size: var(--text-xs); -} - -.group-note .control-icon { - width: var(--chip-h); - min-width: var(--chip-h); - min-height: var(--chip-h); - border-color: transparent; - background: none; - box-shadow: none; - color: var(--ink-faint); -} - -/* ---- the row ------------------------------------------------------------------ */ - -/* lead | body | actions, then the tray full width. The body is minmax(0, 1fr): - whatever is too long is clipped inside it and never pushes the actions. */ -.r { - position: relative; - display: grid; - grid-template-columns: auto minmax(0, 1fr) auto; - grid-template-areas: - "lead body act" - "tray tray tray"; - align-items: center; - column-gap: var(--space-3); - min-height: var(--row-min); - padding: var(--space-2) 0; - border-bottom: 1px solid oklch(from var(--line) l c h / 60%); -} - -.r[data-nolead] { - grid-template-columns: minmax(0, 1fr) auto; - grid-template-areas: - "body act" - "tray tray"; -} - -.r-lead { - grid-area: lead; - display: flex; - align-items: center; - justify-content: center; -} - -.r-body { - grid-area: body; - display: grid; - align-content: center; - gap: var(--space-1); - min-width: 0; -} - -.r-title { - min-width: 0; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-size: var(--text-sm); - font-weight: 600; - line-height: 1.3; - color: var(--ink); -} - -.r-title .yr { - margin-left: var(--space-2); - font-family: var(--font-readout); - font-size: var(--text-xs); - font-weight: 400; - color: var(--ink-faint); -} - -/* one line of chips; what does not fit fades out at the edge rather than - being cut through a word */ -.r-meta { - display: flex; - align-items: center; - flex-wrap: nowrap; - gap: var(--space-1); - min-width: 0; - overflow: hidden; - mask-image: linear-gradient(to right, var(--ink) calc(100% - 1.5rem), transparent); -} - -.r-meta:empty { - display: none; -} - -.r-meta [data-pri="2"] { - display: none; -} - -.r-sub { - min-width: 0; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-size: var(--text-2xs); - line-height: 1.3; - color: var(--ink-faint); -} - -/* the full string, on a tap (§9.3: the release name is evidence, on expand) */ -.r-sub[data-full] { - white-space: normal; - overflow-wrap: anywhere; -} - -.r-sub[data-tone="fault"] { - color: var(--signal-fault); -} - -.r-act { - grid-area: act; - display: flex; - align-items: center; - justify-content: flex-end; - gap: var(--space-1); -} - -/* every slot has its width whether or not it holds a control, so a row of a - kind keeps one action column */ -.r-slot { - display: flex; - flex: none; - align-items: center; - justify-content: center; -} - -.r-slot[data-width="icon"] { - width: var(--control-h); -} - -.r-slot[data-width="toggle"] { - width: var(--toggle-w); -} - -.r-slot[data-width="toggle"] > .toggle { - width: 100%; -} - -.r-slot[data-width="word"] { - min-width: var(--word-w); -} - -.r-slot[data-width="word"] > .control { - width: 100%; -} - -.r-slot[data-wide] { - display: none; -} - -.r-chevron { - color: var(--ink-faint); -} - -.r-chevron .icon { - width: 0.875rem; - height: 0.875rem; -} - -/* the row as a link: a stretched button under everything; real controls sit - above it, everything else lets the tap through */ -.r-link { - position: absolute; - inset: 0; - z-index: 0; - padding: 0; - background: transparent; - border: 0; - cursor: pointer; - transition: background 150ms var(--ease-out); -} - -.r-link:hover { - background: var(--highlight); -} - -.r-link:focus-visible { - outline-offset: -2px; -} - -.r:has(> .r-link) > :not(.r-link) { - position: relative; - z-index: 1; - pointer-events: none; -} - -.r:has(> .r-link) button:not(.r-link), -.r:has(> .r-link) a, -.r:has(> .r-link) select, -.r:has(> .r-link) input, -.r:has(> .r-link) [role="button"] { - pointer-events: auto; -} - -.r-tray { - grid-area: tray; - display: grid; - gap: var(--space-2); - min-width: 0; - padding-top: var(--space-2); -} - -.r-tray:not(:has(> :not([hidden]))) { - display: none; -} - -.r:has(> .r-link) > .r-tray { - pointer-events: auto; -} - -.r-note { - margin: 0; - font-size: var(--text-xs); - color: var(--ink-muted); -} - -.r-note[data-tone="fault"] { - color: var(--signal-fault); -} - -.r-note[data-tone="warn"] { - color: var(--signal-warn); -} - -/* the ⋯ tray: the row's other actions, labelled, full width */ -.r-morepanel { - display: grid; - gap: var(--space-2); -} - -.r-morepanel .control, -.r-morepanel .toggle { - width: 100%; - justify-content: flex-start; -} - -.r-morepanel .control .icon { - margin-right: var(--space-1); -} - -.r-empty { - display: flex; - align-items: center; - gap: var(--space-2); - min-height: var(--row-min); - padding: var(--space-2) 0; - font-size: var(--text-xs); - color: var(--ink-muted); - border-bottom: 1px solid oklch(from var(--line) l c h / 60%); -} - -.r-empty[data-tone="fault"] { - color: var(--signal-fault); -} - -/* row leads */ -.row-poster, -.row-poster-blank { - display: block; - width: 2.25rem; - aspect-ratio: 2 / 3; - flex: none; - object-fit: cover; - background: var(--panel-raised); - border: 1px solid var(--line); - border-radius: 3px; -} - -.lead-tag { - width: var(--control-h); - text-align: center; - font-size: var(--text-xs); - font-weight: 600; - color: var(--ink-faint); -} - -.lead-lamp { - display: flex; - width: var(--space-4); - justify-content: center; -} - -/* score: the release's lead, on the list-relative heat scale (issue 111) */ -.score { - display: inline-grid; - place-items: center; - width: var(--control-h); - height: var(--control-h); - font-family: var(--font-readout); - font-size: var(--text-sm); - font-weight: 700; - font-variant-numeric: tabular-nums; - color: var(--ink-muted); - border: 1px solid var(--line); - border-radius: var(--radius); -} - -.score[data-score="0"] { - color: var(--score-0); - border-color: oklch(from var(--score-0) l c h / 50%); -} -.score[data-score="1"] { - color: var(--score-1); - border-color: oklch(from var(--score-1) l c h / 50%); -} -.score[data-score="2"] { - color: var(--score-2); - border-color: oklch(from var(--score-2) l c h / 50%); -} -.score[data-score="3"] { - color: var(--score-3); - border-color: oklch(from var(--score-3) l c h / 50%); -} -.score[data-score="4"] { - color: var(--score-4); - border-color: oklch(from var(--score-4) l c h / 50%); -} -.score[data-score="5"] { - color: var(--score-5); - border-color: oklch(from var(--score-5) l c h / 50%); -} -.score[data-score="6"] { - color: var(--score-6); - border-color: oklch(from var(--score-6) l c h / 50%); -} - -/* season disclosure: the lead of a season row */ -.r-lead .disclose-lead { - border-color: var(--line); - background: transparent; - box-shadow: none; - color: var(--ink-muted); -} - -.disclose-lead .icon { - transition: transform 200ms var(--ease-out); -} - -.disclose-lead[aria-expanded="true"] .icon { - transform: rotate(90deg); -} - -.r[data-row="season"] > .r-body > .r-title { - font-family: var(--font-display); - font-size: var(--text-base); - font-weight: 700; - letter-spacing: 0.08em; - text-transform: uppercase; -} - -.episodes { - margin: 0; - padding: 0; - list-style: none; - background: oklch(from var(--panel) l c h / 50%); -} - -/* release cells: the §9.3 fixed columns, from 46rem; the chips carry them below */ -.r-cells, -.colhead { - display: none; -} - -.colhead-cells, -.r-cells { - grid-template-columns: 4rem 4.5rem 4.5rem 6rem 7rem 3.5rem; - gap: var(--space-4); -} - -.r-cells > span { - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-family: var(--font-readout); - font-size: var(--text-xs); - font-variant-numeric: tabular-nums; - color: var(--ink-muted); -} - -.r-cells > .num, -.colhead-cells > .num { - text-align: right; -} - -.r-cells > .unclaimed { - color: var(--ink-faint); -} - -.colhead { - grid-template-columns: var(--control-h) minmax(0, 1fr) var(--word-w); - column-gap: var(--space-3); - padding: var(--space-2) 0 var(--space-1); - border-bottom: 1px solid oklch(from var(--line) l c h / 60%); -} - -.colhead-cells { - grid-column: 2; - display: grid; -} - -.colhead-score, -.colhead-cells > span { - font-family: var(--font-readout); - font-size: var(--text-2xs); - text-transform: uppercase; - letter-spacing: 0.04em; - color: var(--ink-faint); -} - -/* skeleton: the row's own geometry, no shimmer (Dead-Air) */ -.r-skel { - pointer-events: none; -} - -.skel { - display: block; - background: var(--panel-raised); - border-radius: 3px; -} - -.skel-lead { - width: 2.25rem; - height: 3.375rem; -} - -.skel-line { - width: 70%; - height: 0.75rem; -} - -.skel-short { - width: 40%; -} - -@container (min-width: 40rem) { - .r-meta [data-pri="2"] { - display: inline-flex; - } - - .r-slot[data-wide] { - display: flex; - } - - .r-slot[data-narrow], - .r-morepanel { - display: none; - } - - .r-title { - font-size: var(--text-base); - } -} - -@container (min-width: 46rem) { - .r[data-row="release"] .r-meta [data-cell] { - display: none; - } - - .r[data-row="release"] .r-cells, - .colhead { - display: grid; - } -} - -/* ---- poster grid (§9.6, issue 151) -------------------------------------- */ - -.deck-rows.grid-rows { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); - gap: var(--space-3); - padding-top: var(--space-3); -} - -.card { - display: flex; - flex-direction: column; - width: 100%; - height: 100%; - padding: 0; - font: inherit; - text-align: left; - color: inherit; - background: var(--panel); - border: 1px solid var(--line); - border-radius: var(--radius); - overflow: hidden; - cursor: pointer; - transition: border-color 150ms var(--ease-out); -} - -.card:hover { - border-color: var(--accent); -} - -.card-art { - display: block; - aspect-ratio: 2 / 3; - background: var(--panel-raised); -} - -.card-poster { - display: block; - width: 100%; - height: 100%; - object-fit: cover; -} - -/* same ratio as a poster, carrying the title: the grid never has a hole */ -.card-blank { - display: flex; - align-items: center; - justify-content: center; - width: 100%; - height: 100%; - padding: var(--space-3); -} - -.card-blank-title { - font-family: var(--font-display); - font-size: var(--text-base); - font-weight: 600; - text-align: center; - color: var(--ink-faint); -} - -.card-body { - display: grid; - gap: var(--space-1); - padding: var(--space-2); -} - -.card-name { - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-size: var(--text-sm); - font-weight: 600; - color: var(--ink); -} - -.card-chips { - display: flex; - gap: var(--space-1); - min-height: var(--chip-h); - overflow: hidden; -} - -.card-skel .card-art { - background: var(--panel-raised); -} - -/* ---- search rows and the add flow (§9.2) ---------------------------------- */ - -.add-panel { - display: grid; - gap: var(--space-3); - padding: var(--space-3); - background: var(--panel); - border: 1px solid var(--line); - border-radius: var(--radius); - box-shadow: inset 0 1px var(--highlight); -} - -.add-roots { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); - gap: var(--space-2); -} - -.root-option { - display: grid; - gap: var(--space-1); - min-height: var(--control-h); - padding: var(--space-2) var(--space-3); - font: inherit; - text-align: left; - color: var(--ink); - background: var(--panel-raised); - border: 1px solid var(--line); - border-radius: var(--radius); - cursor: pointer; - transition: border-color 150ms var(--ease-out); -} - -.root-option:hover:not(:disabled) { - border-color: var(--line-strong); -} - -.root-option[aria-pressed="true"] { - border-color: var(--accent); -} - -.root-option:disabled { - cursor: default; - opacity: 0.6; -} - -.root-audience { - font-family: var(--font-display); - font-size: var(--text-md); - font-weight: 700; - text-transform: uppercase; - letter-spacing: 0.12em; - line-height: 1; -} - -.root-policy, -.root-path { - font-size: var(--text-xs); -} - -.add-actions { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: var(--space-3); -} - -.add-autotrack { - display: grid; - justify-items: start; - gap: var(--space-1); -} - -.add-note { - margin: 0; - font-size: var(--text-xs); - color: var(--ink-muted); -} - -.add-note[data-tone="fault"] { - color: var(--signal-fault); -} - -.add-note[data-tone="ok"] { - color: var(--signal-ok); -} - -/* ---- title detail (§9.6) ---------------------------------------------------- */ - -/* the hero: back and title, then poster and what the title IS, over the - backdrop sunk into the console charcoal by a scrim */ -.hero { - position: relative; - overflow: hidden; - margin-bottom: var(--space-3); - padding: var(--space-2) var(--gutter) var(--space-4); -} - -.hero::before { - content: ""; - position: absolute; - inset: 0; - background-image: var(--backdrop); - background-size: cover; - background-position: center 20%; - opacity: 0; - transition: opacity 400ms var(--ease-out); -} - -.hero.has-backdrop::before { - opacity: 1; -} - -.hero::after { - content: ""; - position: absolute; - inset: 0; - background: - linear-gradient( - to top, - oklch(from var(--ground) l c h / 96%) 0%, - oklch(from var(--ground) l c h / 78%) 50%, - oklch(from var(--ground) l c h / 55%) 100% - ), - oklch(from var(--ground) l c h / 30%); -} - -.hero > * { - position: relative; - z-index: 1; -} - -.page-head { - display: flex; - align-items: center; - gap: var(--space-2); - min-height: var(--control-h); - margin-bottom: var(--space-3); -} - -/* a detail page without a hero still gives its head room under the rail */ -.deck.detail > .page-head { - padding-top: var(--space-2); -} - -.page-head .page-title { - flex: 0 1 auto; -} - -.page-head > .control-icon { - flex: none; - border-color: transparent; - background: transparent; - box-shadow: none; -} - -.page-id { - display: grid; - min-width: 0; -} - -.page-year, -.page-sub { - flex: none; - font-size: var(--text-xs); - color: var(--ink-muted); -} - -.page-sub { - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} - -/* the title is known before the page is: a bar the title's own size */ -.page-title:empty::before, -[data-loading] .page-title::before { - content: ""; - display: inline-block; - width: 12rem; - height: 1em; - vertical-align: middle; - background: var(--panel-raised); - border-radius: 3px; -} - -.hero-body { - display: grid; - grid-template-columns: 6rem minmax(0, 1fr); - gap: var(--space-4); - align-items: start; -} - -/* the poster's box is there before the poster is */ -.hero-poster { - aspect-ratio: 2 / 3; - background: var(--panel-raised); - border: 1px solid var(--line-strong); - border-radius: var(--radius); - overflow: hidden; -} - -.movie-poster { - display: block; - width: 100%; - height: 100%; - object-fit: cover; - opacity: 0; - transition: opacity 300ms var(--ease-out); -} - -.movie-poster[data-loaded] { - opacity: 1; -} - -.hero-info { - display: grid; - gap: var(--space-2); - align-content: start; - min-width: 0; -} - -.hero-chips { - display: flex; - flex-wrap: wrap; - gap: var(--space-1); - min-height: var(--chip-h); -} - -/* each line keeps its height while empty, so the hero never grows in steps */ -.hero-rating, -.hero-meta { - display: flex; - align-items: center; - gap: var(--space-1); - min-height: 1.25rem; - margin: 0; - font-size: var(--text-xs); - color: var(--ink-muted); -} - -.hero-rating { - color: var(--ink); -} - -.hero-tagline { - display: none; - margin: 0; - font-family: var(--font-display); - font-size: var(--text-md); - font-weight: 600; - color: var(--ink-muted); -} - -/* three lines, reserved, a tap opens the rest */ -.hero-overview { - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: 3; - min-height: 4.5em; - max-width: 65ch; - margin: 0; - overflow: hidden; - font-size: var(--text-sm); - color: var(--ink); - cursor: pointer; -} - -.hero-overview[data-full] { - -webkit-line-clamp: unset; -} - -.hero-note { - margin-top: var(--space-2); -} - -/* one action bar: the primary word, the links as glyphs, the rest behind ⋯ */ -.actionbar { - display: flex; - align-items: center; - gap: var(--space-2); - min-height: var(--control-h); - margin-bottom: var(--space-3); -} - -.actionbar-links { - display: flex; - flex: 1; - align-items: center; - gap: var(--space-2); - min-width: 0; -} - -.actionbar > .control-icon:last-child { - margin-left: auto; -} - -.trailer-link .control-word { - display: none; -} - -.more-panel { - display: grid; - gap: var(--space-3); - margin-bottom: var(--space-4); - padding: var(--space-3); - background: var(--panel); - border: 1px solid var(--line); - border-radius: var(--radius); - box-shadow: inset 0 1px var(--highlight); -} - -.more-links { - display: flex; - flex-wrap: wrap; - gap: var(--space-2); -} - -.more-links:empty { - display: none; -} - -.more-toggles { - display: grid; - gap: var(--space-2); -} - -.more-toggles .toggle, -.more-panel > .control { - width: 100%; - justify-content: flex-start; -} - -.more-field { - display: grid; -} - -.control-note { - margin: 0; - font-size: var(--text-xs); - color: var(--ink-muted); -} - -@container (min-width: 40rem) { - .hero { - padding-top: var(--space-4); - } - - .hero-body { - grid-template-columns: 9rem minmax(0, 1fr); - gap: var(--space-6); - } - - .hero-tagline { - display: block; - } - - .page-title { - font-size: var(--text-xl); - } - - .trailer-link .control-word { - display: inline; - } - - .trailer-link { - width: auto; - padding: 0 var(--space-4); - } - - .more-panel { - grid-template-columns: repeat(2, minmax(0, 1fr)); - align-items: end; - } - - .more-toggles { - grid-template-columns: repeat(2, minmax(0, 1fr)); - grid-column: 1 / -1; - } - - .more-panel > .remove-panel, - .more-panel > .more-links, - .more-panel > .control-note { - grid-column: 1 / -1; - } -} - -@container (min-width: 64rem) { - .hero-body { - grid-template-columns: 10.5rem minmax(0, 1fr); - } -} - -/* ---- removal confirmation (§7.4, issue 104) ------------------------------- */ - -.remove-body { - display: grid; - gap: var(--space-2); - padding: var(--space-3); - background: var(--panel-raised); - border: 1px solid var(--line); - border-radius: var(--radius); -} - -.remove-body[data-armed="true"] { - border-color: oklch(from var(--signal-warn) l c h / 55%); -} - -.remove-evidence, -.remove-path, -.remove-note { - margin: 0; - font-size: var(--text-xs); -} - -/* the folder is evidence: it wraps rather than truncating */ -.remove-path { - color: var(--ink-muted); - overflow-wrap: anywhere; - white-space: pre-line; -} - -.remove-note { - color: var(--ink-muted); -} - -.remove-note[data-tone="warn"] { - color: var(--signal-warn); -} - -.remove-note[data-tone="fault"] { - color: var(--signal-fault); -} - -.remove-actions { - display: flex; - flex-wrap: wrap; - gap: var(--space-2); -} - -.remove-body[data-armed="true"] .remove-actions .control:first-child:not(:disabled) { - color: var(--signal-warn); - border-color: oklch(from var(--signal-warn) l c h / 55%); -} - -/* ---- release deck (§9.3) ------------------------------------------------- */ - -.buckets { - container-type: inline-size; -} - -.bucket-more { - padding-top: var(--space-3); -} - -/* #227: a pack abandoned at import, above the candidates — a quiet panel */ -.deck-notice { - margin-bottom: var(--space-6); - padding: var(--space-3) var(--space-4) var(--space-4); - background: var(--panel); - border: 1px solid var(--line); - border-radius: var(--radius); -} - -.deck-notice[data-blacklist="policy"] { - background: oklch(from var(--signal-warn) l c h / 7%); - border-color: oklch(from var(--signal-warn) l c h / 40%); -} - -.deck-notice[data-blacklist="release"] { - background: oklch(from var(--signal-fault) l c h / 7%); - border-color: oklch(from var(--signal-fault) l c h / 40%); -} - -.deck-notice .deck-label { - margin-bottom: var(--space-2); -} - -.deck-notice[data-blacklist="policy"] .deck-label { - color: var(--signal-warn); -} - -.deck-notice[data-blacklist="release"] .deck-label { - color: var(--signal-fault); -} - -.notice-release { - margin: 0 0 var(--space-2); - overflow-wrap: anywhere; - font-size: var(--text-xs); - color: var(--ink); -} - -.notice-line { - margin: 0; - max-width: 68ch; - font-size: var(--text-sm); - color: var(--ink-muted); -} - -.notice-line + .notice-line { - margin-top: var(--space-2); -} - -.r-why { - font-size: var(--text-xs); - color: var(--ink-muted); -} - -.r-why[data-blacklist="release"] { - color: oklch(from var(--signal-fault) 0.78 0.1 h); -} - -/* ---- subtitles (§15, §9.6) -------------------------------------------- */ - -/* the one subtitle chip a file's row carries: it opens the panel */ -.subs-chip .icon { - opacity: 0.7; -} - -.subs-chip:hover, -.subs-chip:focus-visible, -.subs-chip[aria-expanded="true"] { - border-color: currentColor; -} - -/* the languages read as one string, as wide as the wanted set can need */ -.subs-chip-langs { - display: inline-flex; - align-items: baseline; - flex: none; - overflow: hidden; - white-space: nowrap; -} - -/* the check has its slot whether or not it is drawn */ -.subs-chip-mark { - display: inline-flex; - flex: none; - justify-content: center; - width: 0.75rem; -} - -.subs-chip-langs [data-mt="true"] { - text-decoration: underline dotted; - text-underline-offset: 2px; -} - -.subs-panel { - container-type: inline-size; - min-width: 0; - padding: var(--space-3); - background: var(--panel); - border: 1px solid var(--line); - border-radius: var(--radius); -} - -.subs-panel .deck-group { - margin-bottom: var(--space-4); -} - -.subs-panel .deck-group:last-child { - margin-bottom: 0; -} - -.subs-present { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: var(--space-1); - padding-top: var(--space-3); -} - -.subs-present > p { - margin: 0; - font-size: var(--text-xs); -} - -.subs-controls { - display: flex; - flex-wrap: wrap; - align-items: flex-end; - gap: var(--space-2) var(--space-3); - padding-top: var(--space-3); -} - -.subs-langs { - display: flex; - flex-wrap: wrap; - gap: var(--space-1); -} - -.subs-field { - flex: 1 1 12rem; - min-width: 9rem; - max-width: 18rem; -} - -.subs-field-narrow { - flex: 0 1 9rem; - max-width: 11rem; -} - -.subs-note { - margin: var(--space-2) 0 0; - font-size: var(--text-xs); - color: var(--ink-muted); -} - -.subs-note[data-tone="fault"] { - color: var(--signal-fault); -} - -.subs-buckets { - margin-top: var(--space-3); -} - -.subs-buckets .deck-group { - margin-bottom: var(--space-3); -} - -/* ---- settings (issue #116) -------------------------------------------- */ - -.form-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); - gap: var(--space-3); - align-items: end; -} - -.field { - display: grid; - gap: var(--space-1); -} - -.field-label { - font-size: var(--text-2xs); - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.12em; - color: var(--ink-muted); -} - -.form-input { - width: 100%; - min-height: var(--control-h); - padding: 0 var(--space-3); - font-family: var(--font-readout); - font-size: var(--text-base); - color: var(--ink); - background: var(--ground); - border: 1px solid var(--line); - border-radius: var(--radius); - box-shadow: inset 0 1px var(--lowlight); - caret-color: var(--accent); - transition: border-color 150ms var(--ease-out); -} - -.form-input:hover { - border-color: var(--line-strong); -} - -.form-input:focus { - border-color: var(--accent); - outline: none; -} - -.form-input:disabled { - color: var(--ink-faint); - border-color: var(--line); -} - -/* a select draws its own chevron: appearance is gone, so the shape returns */ -select.form-input { - appearance: none; - padding-right: var(--space-8); - background-image: - linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), - linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); - background-position: - calc(100% - 1.1rem) 50%, - calc(100% - 0.8rem) 50%; - background-size: 0.3rem 0.3rem; - background-repeat: no-repeat; -} - -.form-input[data-invalid] { - border-color: var(--signal-fault); -} - -.band-line { - display: flex; - align-items: center; - gap: var(--space-2); -} - -.band-line .field-label { - width: 3.5rem; -} - -/* four numbers and a label must share a phone's width, so the inputs shrink - rather than push the line past the gutter */ -.band-num { - flex: 1 1 0; - min-width: 0; - max-width: 4.5rem; -} - -.subtitle-panel .field-label { - display: block; - margin: var(--space-4) 0 var(--space-2); -} - -.provider-list { - margin: 0 0 var(--space-3); - padding: 0; - list-style: none; -} - -.provider-toggle { - width: 1.25rem; - height: 1.25rem; - margin: 0; - accent-color: var(--accent); -} - -.provider-budget { - width: 5.5rem; -} - -@media (min-width: 40rem) { - .form-input { - font-size: var(--text-sm); - } -} - -/* ---- signal chain (§9.7: a settings section) ------------------------------- */ - -.chain-wrap { - container-type: inline-size; - padding-top: var(--space-4); -} - -/* the phone stacks the chain into one junctioned trace */ -.chain { - width: 100%; - display: grid; - grid-template-columns: 1fr; - grid-template-areas: - "tmdb" - "prow" - "t1" - "master" - "out" - "sink"; - align-items: center; - row-gap: var(--space-3); -} - -.area-tmdb { - grid-area: tmdb; -} - -.area-prowlarr { - grid-area: prow; -} - -.area-t1 { - grid-area: t1; -} - -.area-t2 { - display: none; -} - -.area-master { - grid-area: master; -} - -.area-out { - grid-area: out; -} - -.area-qbittorrent { - grid-area: sink; -} - -.chain-lane { - margin-top: var(--space-4); - display: grid; - grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); - gap: var(--space-3); - align-items: stretch; -} - -.module { - min-width: 0; - background: var(--panel); - border: 1px solid var(--line); - border-radius: var(--radius); - box-shadow: inset 0 1px var(--highlight); - padding: var(--space-4) var(--space-4) var(--space-3); -} - -.module-master { - background: var(--panel-raised); - border-color: var(--line-strong); -} - -.module-head { - display: flex; - align-items: center; - flex-wrap: wrap; - gap: var(--space-1) var(--space-2); -} - -.module-name { - margin: 0; - font-family: var(--font-display); - font-size: var(--text-md); - font-weight: 700; - text-transform: uppercase; - letter-spacing: 0.12em; - line-height: 1; -} - -.module-master .module-name { - font-size: var(--text-lg); -} - -.module-status { - margin-left: auto; - padding-left: var(--space-3); - color: var(--ink-muted); -} - -.module-status[data-tone="ok"] { - color: var(--signal-ok); -} - -.module-status[data-tone="warn"] { - color: var(--signal-warn); -} - -.module-status[data-tone="fault"] { - color: var(--signal-fault); -} - -.module-role { - margin: var(--space-2) 0 0; - font-size: var(--text-2xs); - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.12em; - color: var(--ink-muted); -} - -.module-detail { - margin: var(--space-1) 0 0; - min-height: 1.2em; - font-size: var(--text-xs); - color: var(--ink-muted); -} - -.intake .module-detail { - overflow-wrap: anywhere; -} - -.bus { - display: grid; - align-content: center; - justify-items: center; - height: 2rem; -} - -.bus svg { - transform: rotate(90deg); - width: 2rem; -} - -.bus-trace { - --trace: var(--line-strong); - width: 100%; - height: 0.5rem; - display: block; - transition: filter 300ms var(--ease-out); -} - -.bus-trace line { - stroke: var(--trace); - stroke-width: 1; -} - -.bus-arrow { - fill: var(--trace); -} - -.bus-trace[data-tone="ok"] { - --trace: var(--signal-ok); -} - -.bus-trace[data-tone="warn"] { - --trace: var(--signal-warn); -} - -.bus-trace[data-tone="fault"] { - --trace: var(--signal-fault); -} - -@container (min-width: 46rem) { - .chain { - grid-template-columns: 1fr 2.5rem 1.2fr 2.5rem 1fr; - grid-template-areas: - "tmdb t1 master out sink" - "prow t2 master out sink"; - row-gap: var(--space-6); - } - - .area-t2 { - display: grid; - grid-area: t2; - } - - .bus { - height: auto; - } - - .bus svg { - transform: none; - width: 100%; - } - - .module-master { - padding: var(--space-6) var(--space-4) var(--space-4); - } -} - -@media (prefers-reduced-motion: reduce) { - *, - *::before { - /* biome-ignore lint/complexity/noImportantStyles: reduced motion overrides every transition */ - transition: none !important; - } - - .lamp[data-state="probing"], - .chain.powered .lamp { - animation: none; - } -} diff --git a/web/src/ui.ts b/web/src/ui.tsx similarity index 100% rename from web/src/ui.ts rename to web/src/ui.tsx diff --git a/web/tsconfig.json b/web/tsconfig.json index e03756d..f6d749c 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -2,6 +2,7 @@ "compilerOptions": { "target": "ES2022", "lib": ["ES2022", "DOM", "DOM.Iterable"], + "jsx": "react-jsx", "module": "ESNext", "moduleResolution": "Bundler", "strict": true, diff --git a/web/vite.config.ts b/web/vite.config.ts index 522e2e2..5cb2c2c 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -1,3 +1,5 @@ +import tailwindcss from "@tailwindcss/vite"; +import react from "@vitejs/plugin-react"; import { defineConfig, loadEnv } from "vite"; // Dev-mode proxy target: the running daemon. `pnpm dev` gives hot reload while @@ -9,6 +11,7 @@ export default defineConfig(({ mode }) => { const env = loadEnv(mode, process.cwd(), ""); const target = (env.ARR_DAEMON_URL ?? DEFAULT_DAEMON_URL).replace(/\/+$/, ""); return { + plugins: [react(), tailwindcss()], build: { target: "es2022", outDir: "dist",