forge
Explore
Log in

Don't you dare go Hollow

🎨 migrate the app onto the Figma design system

Browse files at this commit

b2d57d2afbfa20ab0730a1e5565b76a33d9c05fbBurak BoduroğluParent: d2570ac
  • feat
    • 🎨 migrate the app onto the Figma design system
Show full message
feat: 🎨 migrate the app onto the Figma design system

- semantic light/dark aliases with the landing page's #00ADD8 brand
  override and the pixel-wing logo mark; user-selected accents stay
  authoritative over the default brand
- desktop shell geometry at the 1440px reference: 260px sidebar, 45px top
  bar, 34px nav rows, 30px sub-nav rows, 1100px content area
- controls settle on 36px base button/input, 26px small button, 20px
  badge pill, 32px tab, so per-call-site h-10/rounded-* overrides go away
- 39 shared glyphs compiled from the pinned @phosphor-icons/core Regular
  sources; app-specific Lucide-style icons stay
- /login matches the SYS-01 480px standalone panel, keeping the current
  username/password contract
- desktop composition across courses, homework, exams, question bank,
  classes, admin users, payments, settings, staff work, work log, meals,
  messages, whiteboards and the teacher report screens: raw palette
  colors give way to success/warning/destructive and the surface/border
  aliases, tables pin their actions column to 110px at a 45px row, and
  ad-hoc tinted section shells defer to data-shell
- student mobile: the 7-tab course detail scrolls horizontally below sm
  instead of wrapping to four cramped rows, nested report tables drop
  their min-width, and the whiteboard's three floating toolbar islands
  reflow into one wrapping bar under 640px where they used to overlap
- docs/ui/figma-migration-coverage.md records route-level coverage and
  the features held back for want of a backend contract

Figma screens that show mastery scores, AI risk tags, streaks, occupancy
bars and work-quality ratings are deliberately not built: the API exposes
none of it, and the alternative is a page of invented numbers. Export and
discard buttons with nothing behind them are left out for the same reason.

83 changed files +1097 -858

bun.lockmodified+3 -0
@@ -6,6 +6,7 @@
66 "name": "hezarfen-frontend",
77 "dependencies": {
88 "@kobalte/core": "^0.13.12",
9+ "@phosphor-icons/core": "2.1.1",
910 "@tanstack/solid-router": "^1.170.18",
1011 "@tanstack/solid-table": "^8.21.3",
1112 "class-variance-authority": "^0.7.1",
@@ -207,6 +208,8 @@
207208
208209 "@oxc-project/types": ["@oxc-project/types@0.139.0", "", {}, "sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw=="],
209210
211+ "@phosphor-icons/core": ["@phosphor-icons/core@2.1.1", "", {}, "sha512-v4ARvrip4qBCImOE5rmPUylOEK4iiED9ZyKjcvzuezqMaiRASCHKcRIuvvxL/twvLpkfnEODCOJp5dM4eZilxQ=="],
212+
210213 "@playwright/test": ["@playwright/test@1.62.1", "", { "dependencies": { "playwright": "1.62.1" }, "bin": { "playwright": "cli.js" } }, "sha512-DTcUc8qii+cpHvtOwggMtBRMjKZHXYWdw8syRYu2vtzuq4Wxphqq4NfCs5Zt44L6mA8rfDfj+PHnxFc/FeK6mQ=="],
211214
212215 "@rolldown/binding-android-arm64": ["@rolldown/binding-android-arm64@1.1.5", "", { "os": "android", "cpu": "arm64" }, "sha512-lZg8fqIv2v7FF237bwMgzGZEJvGL79/s5knJ/i6FmsGF4XXlzccZ4jb+TrFIxtSSxFtIpdsgrPZeMk1I9AFcyQ=="],
docs/ui/figma-migration-coverage.mdadded+155 -0
@@ -0,0 +1,155 @@
1+# Figma UI Migration Coverage
2+
3+Source: `Hezarfen App Design` (`E8K670gsUx87yMOySGWrKf`)
4+
5+Last reviewed: 2026-09-12
6+
7+This document is the route-level source of truth for the Figma migration. A
8+Figma example never replaces a working authorization rule, API contract,
9+loading/error state, or mutation flow. Static names and metrics in the design
10+must always be replaced with real application data.
11+
12+## Design pages
13+
14+| Figma page | Node | Coverage |
15+|---|---:|---|
16+| Components | `3:3` | Shared controls, navigation, data display, and feedback audited |
17+| Icons | `3:4` | 84 Phosphor Regular 16px icons audited; shared app glyphs migrated |
18+| Admin | `3:5` | 24 screens plus 2 modal variants audited |
19+| Teacher | `3:6` | 14 screens plus 2 modal variants audited |
20+| Student | `3:7` | 11 screens plus 2 modal variants audited |
21+| Parent | `3:8` | 8 screens audited |
22+| System | `103:2` | 7 screens audited |
23+| Mobile Kit | `40:2` | Shared 393px mobile primitives audited |
24+| Student Mobile | `40:3` | 9 screens audited |
25+| Parent Mobile | `40:4` | 6 screens audited |
26+| Dark Mode | `113:9393` | 10 reference screens audited |
27+
28+The Cover manifest also names a Foundations page, but no Foundations node URL
29+was supplied. Exact values already exposed by component and dark-mode contexts
30+are used; unknown values are not inferred.
31+
32+## Implemented foundation
33+
34+- Figma semantic light/dark aliases with the landing page's `#00ADD8` brand
35+ override and pixel-wing logo.
36+- User-selected accent colors remain authoritative over the default brand.
37+- Desktop shell: 260px expanded sidebar, 45px top bar, 34px navigation rows,
38+ 30px sub-navigation rows, and an 1100px content area at the 1440px reference.
39+- Controls: 36px base button/input, 26px small button, 20px badge, 32px tab.
40+- Mobile tab leaf: 56px; existing iOS/Android safe-area handling is preserved.
41+- Shared Card, PageHeader, EmptyState, Alert, Dialog, SidePanel, and Toast
42+ surfaces use the new geometry and semantic tokens.
43+- Shared table shells, headers, rows, empty states, dashboard cards, and charts
44+ use the Figma semantic surface and border aliases.
45+- 39 glyphs that overlap the current application are sourced from the pinned
46+ official Phosphor Regular SVG package and inherit the active theme color.
47+- `/login` matches the SYS-01 480px standalone authentication panel while
48+ retaining the current username/password backend contract.
49+
50+## Existing routes represented in Figma
51+
52+| Route | Figma coverage | Migration rule |
53+|---|---|---|
54+| `/` | Admin, teacher, student, parent dashboards | Restyle role branches; keep read-only, API-backed data |
55+| `/login` | SYS-01 | Visual migration; keep current auth contract |
56+| `/courses`, `/courses/:id` | Teacher/student classes and mobile lessons | Reuse current course/enrollment behavior |
57+| `/homework`, `/homework/:id` | Teacher/student homework | Reuse DataTable, submissions, files, and role gates |
58+| `/exams`, `/exams/:id` | Admin/teacher/student exams and results | Keep draft/publish, attempts, grading, and statistics gates |
59+| `/question-bank`, `/question-bank/:id` | Admin/teacher question bank | Keep server pagination and copy semantics |
60+| `/calendar` | Teacher/student schedules | Keep current calendar; timetable is a future view |
61+| `/marks` | Student/parent result concepts | Keep student-only report contract and parent-linked access |
62+| `/messages` | Teacher/parent communication | Keep folders, paging, compose, archive, and trash |
63+| `/appointments` | Parent mobile appointment | Keep reason, confirmation, conflict, and status flows |
64+| `/pomodoro` | Student work session | Keep current start/finish contract until DTO expands |
65+| `/whiteboards`, `/whiteboards/:id` | Teacher/student boards | Keep WebSocket canvas, lock, history, and permissions |
66+| `/work` | Teacher work log | Keep server-stamped check-in/out behavior |
67+| `/management/student-marks` | Teacher student analysis | Do not fabricate mastery/AI fields |
68+| `/management/student-attendance` | Teacher/admin attendance | Keep course/session roll-call permissions |
69+| `/management/classes`, `/management/classes/:id` | Admin classes | Keep class/member/course management behavior |
70+| `/management/settings` | Admin settings | Keep manager+ institution settings scope |
71+| `/management/payments` | Admin payments | Keep ledger and permission behavior |
72+| `/management/staff-work` | Admin staff work | Keep existing read/update/delete contract |
73+| `/admin/users`, `/admin/users/:id` | Admin users and roles | Keep admin guard and critical confirmations |
74+| `/students` | Parent development views | Keep linked-child authorization |
75+| `/meals`, `/meals/:id` | Admin cafeteria | Keep menu, booking, balance, and attendance behavior |
76+| `/payments` | Parent/student statement | Remain read-only until a payment-provider API exists |
77+
78+## Figma features blocked by product or backend scope
79+
80+These designs are recorded but must not be implemented with placeholder data or
81+false actions:
82+
83+- AI recommendation approval queue, evidence history, and rule management.
84+- AI question generation and institution-level competency analytics.
85+- Ses Atölyesi audio generation, player, quality gate, and listening analytics.
86+- Student/parent teacher-approved study plans and mastery time series.
87+- Institution selection and multi-institution session context.
88+- Password reset, remember-me session policy, and SSO.
89+- Six-step institution setup wizard and e-Okul/CSV/XLSX import pipeline.
90+- License purchase/billing, KVKK audit log, optical-form processing, and
91+ institution-level PDF/CSV reports.
92+- Schedule generation and conflict resolution.
93+- Payment initiation/provider flow and stored payment-method controls.
94+- General offline mutation queue, idempotency, conflict handling, and incident IDs.
95+- Invite-code boards and enriched Pomodoro lesson/break/streak fields.
96+- Parent/student personal notification, privacy, and AI-preference endpoints.
97+
98+## Application routes not represented by a Figma screen
99+
100+Keep the current UI and behavior until a specific design is added:
101+
102+- `/register`
103+- `/guide`
104+- `/profile/me`, `/profile/:userId`
105+- `/notes`
106+- `/questions`, `/questions/:id`
107+- `/events`, `/events/:id`
108+- `/exam-room/:id`
109+- `/exams/:id/live`
110+- `/management/pomodoros`
111+- `/management/terms`
112+- `/whiteboards/:id` live canvas details beyond the list concept
113+- `/meals/:id` detailed account/service/management tabs
114+- `/studies`, `/clubs`, and `/attendance` redirect aliases
115+
116+## Asset policy
117+
118+Figma defines 84 Phosphor Regular icons in 16px outer/leaf boxes, with documented
119+13px, 14px, 15px, 18px, 20px, 22px, 26px, and 28px exceptions. The 39 glyphs
120+currently shared by Figma and the application are compiled from the pinned
121+`@phosphor-icons/core@2.1.1` Regular SVG sources. Existing local Lucide-style
122+icons remain only for intentionally app-specific glyphs not present on the
123+Figma Icons page. Temporary Figma URLs are never committed.
124+
125+## Validation checklist
126+
127+- `bun run build`
128+- `bun run test`
129+- Desktop screenshots at 1440x1024 in light and dark themes
130+- Mobile screenshots at 393x852, 375px, and 320px widths
131+- iOS and Android bottom-safe-area checks
132+- Role/module navigation and authorization regression checks
133+- Keyboard/focus checks for dialogs, side panels, tables, and mobile navigation
134+- Asset outer-box and leaf-size comparison before declaring icon fidelity complete
135+
136+## Remaining implementation plan
137+
138+### In progress — existing backend support
139+
140+1. Parent mobile composition at 393px, then 375px and 320px:
141+ dashboard, linked students, messages, payments, and appointments.
142+2. System polish: notification panel, branded 404, network/error states,
143+ keyboard/focus audit, dark-mode screenshots, and role/module regression.
144+
145+Secondary desktop composition and student mobile composition are complete in
146+code. Student mobile was reasoned against Tailwind breakpoints rather than
147+eyeballed: the 393px, 375px, and 320px screenshot checks in the validation
148+checklist are still outstanding and need a running backend and a seeded
149+student session.
150+
151+### Waiting for backend or product decisions
152+
153+The items in “Figma features blocked by product or backend scope” stay out of
154+the frontend until their API contracts and authorization rules exist. They must
155+not be simulated with static Figma values or non-functional buttons.
docs/ui/ui-redesign-tokens.mdmodified+23 -20
@@ -2,29 +2,31 @@
22
33 ## Source
44
5-bDash is Hezarfen's visual source of truth. Hezarfen keeps its SolidJS
6-architecture, Kobalte behavior, content model, workflows, semantic status colors,
7-and accessibility. React/Radix implementation details are not copied.
5+The `Hezarfen App Design` Figma file (`E8K670gsUx87yMOySGWrKf`) is the layout
6+and component source of truth. The public landing project at
7+`/Users/burakboduroglu/Projects/hezarfen` is the brand source of truth for the
8+logo and blue palette. Hezarfen keeps its SolidJS architecture, Kobalte
9+behavior, content model, workflows, semantic status colors, and accessibility.
10+Static sample content from Figma never replaces live application data.
811
912 ## Color
1013
1114 Light:
1215
13-- background, card, popover, sidebar: `#F8F9FA`
14-- foreground: `#212529`
15-- primary: `#495057`; primary foreground: `#F8F9FA`
16-- secondary and muted: `#DEE2E6`
17-- accent and border: `#CED4DA`
18-- input: `#ADB5BD`; muted foreground and ring: `#6C757D`
16+- brand and brand accent: `#00ADD8`; brand hover: `#0097BD`
17+- surface/base: `#FFFFFF`; surface/overlay: `#F7F7F7`
18+- surface/tint: `#F5F5F5`; surface/fill: `#E5E5E5`
19+- text/strong: `#0A0A0A`; text/default: `#18181B`
20+- text/subtle: `#737373`; text/placeholder: `#A1A1A1`
21+- border/line: `rgba(10, 10, 10, 0.1)`; border/hairline: `#E9E9E9`
1922
2023 Dark:
2124
22-- background, card, popover, sidebar: `#212529`
23-- foreground: `#F8F9FA`
24-- primary: `#CED4DA`; primary foreground: `#212529`
25-- secondary and muted: `#495057`
26-- accent: `#6C757D`; border: `#495057`; input: `#6C757D`
27-- muted foreground: `#CED4DA`; ring: `#ADB5BD`
25+- surface/base and background: `#0F0F0F`
26+- surface/overlay, tint, and fill: `#262626`
27+- text/strong: `#FAFAFA`; text/default: `#F5F5F5`
28+- text/subtle and placeholder: `#A1A1A1`; border: `#333333`
29+- brand stays `#00ADD8`; brand hover stays `#0097BD`
2830
2931 Success, warning, destructive, and info remain semantic. Custom palette choice
3032 continues to override `--ui-accent`, which feeds `--primary`.
@@ -41,10 +43,11 @@ continues to override `--ui-accent`, which feeds `--primary`.
4143
4244 - Base radius: `0.5rem`
4345 - Controls and menus: `rounded-md`
44-- Cards and tables: `rounded-lg`
45-- Resource/page header: `rounded-xl`
46-- Default control: `h-9`; small control: `h-8`; large control: `h-10`
47-- Content surfaces: `shadow-sm`; menus/popovers: `shadow-xl shadow-black/10`
46+- Cards, tables, dialogs, and empty states: `rounded-xl`
47+- Page headers are plain content hierarchy, not decorative cards
48+- Default control: `h-9`; small button: `26px`; tabs: `32px`; badges: `20px`
49+- Content surfaces use a hairline border without a standing shadow; menus and
50+ overlays use the documented contextual elevation
4851 - Dialogs and side panels: `shadow-2xl shadow-black/20`
4952 - Content surfaces stay opaque. Blur is limited to modal overlays and table
5053 headers where hierarchy needs it.
@@ -59,7 +62,7 @@ display-font, translucent surface, or custom shadow rules.
5962
6063 ## DataTable
6164
62-- Table shell: `rounded-lg border bg-card`
65+- Table shell: `rounded-xl border-border-line bg-surface-base`
6366 - Header: sticky, `text-xs` medium **Title Case** (no uppercase transform),
6467 `tracking-normal`, muted foreground/background
6568 - Body: flat rows (no zebra), restrained hover, `tabular-nums` cells so digits
e2e/auth-shell.spec.tsmodified+2 -0
@@ -1,11 +1,13 @@
11 import { expect, test } from "@playwright/test";
22
3+const school = process.env.E2E_SCHOOL_SLUG ?? "demo";
34 const username = process.env.E2E_ADMIN_USERNAME ?? "admin";
45 const password = process.env.E2E_ADMIN_PASSWORD ?? "admin123";
56
67 test("sign-in reaches the authenticated shell with keyboard-accessible navigation", async ({ page }) => {
78 await page.goto("/login");
89 await expect(page.locator("#login-username")).toBeVisible();
10+ await page.locator("#login-school").fill(school);
911 await page.locator("#login-username").fill(username);
1012 await page.locator("#login-password").fill(password);
1113 await page.locator("form").getByRole("button", { name: /log in|sign in|giriş yap/i }).click();
index.htmlmodified+17 -12
@@ -2,19 +2,15 @@
22 <html lang="en">
33 <head>
44 <meta charset="UTF-8" />
5- <!-- interactive-widget=resizes-content: with the default the soft keyboard
6- only shrinks the visual viewport, so a fixed panel keeps its full
7- height and its composer stays behind the keys. Resizing the layout
8- viewport instead makes 100dvh and fixed insets follow the keyboard,
9- which keeps the field the user is typing in on screen. -->
10- <meta
11- name="viewport"
12- content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"
13- />
5+ <!-- interactive-widget is set at runtime, Android-only (see below): a static
6+ key logs "not recognized" on desktop browsers, while Android Chrome
7+ needs resizes-content so the soft keyboard resizes the layout viewport
8+ and a fixed composer's field stays above the keys. -->
9+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
1410 <meta name="color-scheme" content="light dark" />
1511 <!-- Repainted from --background by preferences-context on every theme
1612 change; this literal is only the value the first paint uses. -->
17- <meta name="theme-color" content="#fafafa" />
13+ <meta name="theme-color" content="#f7f7f7" />
1814 <meta
1915 name="description"
2016 content="Hezarfen; eğitim, ders, sınav, ödev, takvim ve kampüs işlemlerini tek yerde yöneten güvenli öğrenme platformudur."
@@ -33,11 +29,20 @@
3329 if (dark) document.documentElement.classList.add("dark");
3430 // The stylesheet has not loaded yet, so these repeat --background /
3531 // --background(dark) as literals. Keep them in step with index.css.
36- document.documentElement.style.backgroundColor = dark ? "#0a0a0a" : "#fafafa";
32+ document.documentElement.style.backgroundColor = dark ? "#0f0f0f" : "#f7f7f7";
3733 const themeColor = document.querySelector('meta[name="theme-color"]');
38- if (themeColor) themeColor.setAttribute("content", dark ? "#0a0a0a" : "#fafafa");
34+ if (themeColor) themeColor.setAttribute("content", dark ? "#0f0f0f" : "#f7f7f7");
3935 const locale = localStorage.getItem("hezarfen.locale");
4036 if (locale === "en" || locale === "tr") document.documentElement.lang = locale;
37+ // interactive-widget is Android-Chrome-only: appending it here keeps
38+ // desktop browsers from logging "viewport argument key not
39+ // recognized", while Android keeps resizes-content so the soft
40+ // keyboard resizes the layout viewport instead of just the visual
41+ // one. Runs before first paint, next to the other viewport setup.
42+ if (/android/i.test(navigator.userAgent)) {
43+ const viewport = document.querySelector('meta[name="viewport"]');
44+ if (viewport) viewport.setAttribute("content", viewport.getAttribute("content") + ", interactive-widget=resizes-content");
45+ }
4146 // Android reports only the display cutout through CSS env(), so the
4247 // gesture bar is invisible to the page. The Tauri shell exposes its
4348 // height here; read before first paint so nothing renders under it.
package.jsonmodified+1 -0
@@ -18,6 +18,7 @@
1818 },
1919 "dependencies": {
2020 "@kobalte/core": "^0.13.12",
21+ "@phosphor-icons/core": "2.1.1",
2122 "@tanstack/solid-router": "^1.170.18",
2223 "@tanstack/solid-table": "^8.21.3",
2324 "class-variance-authority": "^0.7.1",
public/favicon.svgmodified+13 -4
@@ -1,5 +1,14 @@
1-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
2- <rect width="64" height="64" rx="16" fill="#f97316"/>
3- <path fill="#fff7ed" d="M14 18h36v8H14zm4 12h28v18H18z"/>
4- <path fill="#9a3412" d="M24 34h16v4H24zm0 8h12v3H24z"/>
1+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="Hezarfen">
2+ <title>Hezarfen</title>
3+ <rect width="64" height="64" rx="14" fill="#070b0d"/>
4+ <g fill="#00add8">
5+ <rect x="10" y="40" width="12" height="12" rx="3"/>
6+ <rect x="25" y="28" width="12" height="12" rx="3"/>
7+ <rect x="40" y="16" width="12" height="12" rx="3"/>
8+ </g>
9+ <g fill="#eef6f8" opacity="0.3">
10+ <rect x="25" y="43" width="12" height="9" rx="3"/>
11+ <rect x="40" y="31" width="12" height="9" rx="3"/>
12+ <rect x="40" y="43" width="12" height="9" rx="3"/>
13+ </g>
514 </svg>
src/api/__tests__/auth/auth.test.tsmodified+3 -3
@@ -13,13 +13,13 @@ describe("auth API", () => {
1313 const mockUser = { id: "u1", username: "test" };
1414 mockFetchSuccess(mockUser);
1515
16- const result = await postLogin({ username: "test", password: "password" });
16+ const result = await postLogin({ school: "demo", username: "test", password: "password" });
1717 expect(result).toEqual(mockUser);
1818
1919 const [url, init] = lastFetchCall();
2020 expect(url).toBe("/api/auth/login");
2121 expect(init?.method).toBe("POST");
22- expect(init?.body).toBe(JSON.stringify({ username: "test", password: "password" }));
22+ expect(init?.body).toBe(JSON.stringify({ school: "demo", username: "test", password: "password" }));
2323 });
2424
2525 it("postLogout calls /auth/logout", async () => {
@@ -36,7 +36,7 @@ describe("auth API", () => {
3636 const mockUser = { id: "u2", username: "newuser" };
3737 mockFetchSuccess(mockUser);
3838
39- const data = { username: "newuser", password: "password", email: "test@test.com" };
39+ const data = { school: "demo", username: "newuser", password: "password", email: "test@test.com" };
4040 const result = await postRegister(data);
4141 expect(result).toEqual(mockUser);
4242
src/api/__tests__/contract/helpers/live-client.tsmodified+1 -0
@@ -80,6 +80,7 @@ export async function loginAdmin(): Promise<void> {
8080 await json("/auth/login", {
8181 method: "POST",
8282 body: {
83+ school: env.SCHOOL_SLUG ?? "demo",
8384 username: env.ADMIN_USERNAME ?? "admin",
8485 password: env.ADMIN_PASSWORD ?? "admin123",
8586 },
src/api/auth/postLogin.tsmodified+1 -0
@@ -2,6 +2,7 @@ import { client } from "../client";
22 import type { User } from "../client";
33
44 export type LoginBody = {
5+ school: string;
56 username: string;
67 password: string;
78 };
src/api/auth/postRegister.tsmodified+1 -0
@@ -2,6 +2,7 @@ import { client } from "../client";
22 import type { User } from "../client";
33
44 export type RegisterBody = {
5+ school: string;
56 username: string;
67 password: string;
78 };
src/components/attendance/attendance-report-view.tsxmodified+1 -1
@@ -130,7 +130,7 @@ export function AttendanceReportView(props: { report: AttendanceReport; compact?
130130 class="min-w-0"
131131 columns={columns()}
132132 data={props.report.courses}
133- tableClass={cn("w-full", compact() ? "text-xs" : "table-fixed min-w-160")}
133+ tableClass={cn("w-full", compact() ? "text-xs" : "table-fixed sm:min-w-160")}
134134 enableColumnVisibility={false}
135135 />
136136 </Show>
src/components/brand/logo-mark.tsxadded+45 -0
@@ -0,0 +1,45 @@
1+import { Show } from "solid-js";
2+
3+type LogoMarkProps = {
4+ size?: number;
5+ class?: string;
6+};
7+
8+/**
9+ * Hezarfen's pixel wing from the public landing page. The blue leading edge
10+ * represents upward progress; the quieter cells form the rest of the wing.
11+ * At favicon-sized dimensions only the leading edge is rendered.
12+ */
13+export function LogoMark(props: LogoMarkProps) {
14+ const size = () => props.size ?? 26;
15+ const compact = () => size() < 24;
16+
17+ return (
18+ <svg
19+ width={size()}
20+ height={size()}
21+ viewBox="0 0 256 256"
22+ fill="none"
23+ aria-hidden="true"
24+ shape-rendering="crispEdges"
25+ class={props.class}
26+ >
27+ <g fill="hsl(var(--brand))">
28+ <rect x="30" y="166" width="44" height="44" rx="6" />
29+ <rect x="86" y="122" width="44" height="44" rx="6" />
30+ <rect x="142" y="78" width="44" height="44" rx="6" />
31+ <rect x="198" y="34" width="44" height="44" rx="6" />
32+ </g>
33+
34+ <Show when={!compact()}>
35+ <g fill="currentColor" opacity="0.22">
36+ <rect x="86" y="178" width="44" height="32" rx="6" />
37+ <rect x="142" y="134" width="44" height="32" rx="6" />
38+ <rect x="142" y="178" width="44" height="32" rx="6" />
39+ <rect x="198" y="90" width="44" height="32" rx="6" />
40+ <rect x="198" y="134" width="44" height="32" rx="6" />
41+ </g>
42+ </Show>
43+ </svg>
44+ );
45+}
src/components/courses/course-card.tsxmodified+7 -7
@@ -23,10 +23,10 @@ export function CourseCard(props: {
2323 <Link
2424 to="/courses/$id"
2525 params={{ id: props.course.id }}
26- class="group grid gap-3 rounded-lg border border-border bg-card px-4 py-3 outline-hidden transition-colors hover:border-primary/35 hover:bg-muted/20 focus-visible:ring-2 focus-visible:ring-ring sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center"
26+ class="group grid gap-3 rounded-xl border border-border-line bg-surface-base px-4 py-3 outline-hidden transition-colors hover:border-primary/35 hover:bg-surface-tint focus-visible:ring-2 focus-visible:ring-ring sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center"
2727 >
2828 <div class="flex min-w-0 items-start gap-3">
29- <span class="mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground">
29+ <span class="mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-surface-tint text-text-subtle">
3030 <IconBook class="h-4 w-4" />
3131 </span>
3232 <div class="min-w-0">
@@ -35,8 +35,8 @@ export function CourseCard(props: {
3535 <Badge variant="outline" class="rounded-md text-[10px] font-medium">{props.labels.kind}</Badge>
3636 <Show when={props.enrolled}><Badge variant="secondary" class="rounded-md text-[10px]">{props.labels.enrolled}</Badge></Show>
3737 </div>
38- <p class="mt-0.5 line-clamp-1 text-sm text-muted-foreground">{props.course.description || "—"}</p>
39- <div class="mt-1.5 flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground">
38+ <p class="mt-0.5 line-clamp-1 text-sm text-text-subtle">{props.course.description || "—"}</p>
39+ <div class="mt-1.5 flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-text-subtle">
4040 <span>{props.term}</span>
4141 <span class="flex min-w-0 items-center gap-1.5">
4242 <IconUsers class="h-3.5 w-3.5 shrink-0" />
@@ -46,12 +46,12 @@ export function CourseCard(props: {
4646 </div>
4747 </div>
4848
49- <div class="flex items-center justify-between gap-4 border-t border-border/60 pt-3 sm:border-l sm:border-t-0 sm:pl-5 sm:pt-0">
49+ <div class="flex items-center justify-between gap-4 border-t border-border-hairline pt-3 sm:border-l sm:border-t-0 sm:pl-5 sm:pt-0">
5050 <div class="text-left sm:text-right">
51- <p class="text-[10px] font-medium uppercase tracking-wider text-muted-foreground">{props.labels.capacity}</p>
51+ <p class="text-[10px] font-medium uppercase tracking-wider text-text-subtle">{props.labels.capacity}</p>
5252 <p class="mt-0.5 font-semibold tabular-nums">{props.course.capacity ?? props.labels.unlimited}</p>
5353 </div>
54- <IconChevronRight class="h-4 w-4 text-muted-foreground transition-transform group-hover:translate-x-0.5 group-hover:text-foreground" />
54+ <IconChevronRight class="h-4 w-4 text-text-subtle transition-transform group-hover:translate-x-0.5 group-hover:text-text-default" />
5555 </div>
5656 </Link>
5757 );
src/components/courses/course-notes-panel.tsxmodified+1 -1
@@ -57,7 +57,7 @@ export function CourseNotesPanel(props: {
5757 };
5858
5959 return (
60- <section class="min-w-0 space-y-4 rounded-lg border border-border/60 bg-card/60 p-3 shadow-xs sm:p-4 dark:border-white/8 dark:bg-card/40">
60+ <section class="min-w-0 space-y-4 rounded-xl border border-border-line bg-surface-base p-3 sm:p-4">
6161 <Show when={flash()}>
6262 <Alert variant="success">{flash()}</Alert>
6363 </Show>
src/components/courses/course-subjects-panel.tsxmodified+4 -4
@@ -42,7 +42,7 @@ export function CourseSubjectsPanel(props: { courseId: string; canManage: boolea
4242 {
4343 accessorKey: "description",
4444 header: t("form.description"),
45- meta: { cellClass: "text-sm text-muted-foreground" },
45+ meta: { cellClass: "text-sm text-text-subtle" },
4646 cell: (cell) => cell.row.original.description || "—",
4747 },
4848 ...(props.canManage
@@ -123,10 +123,10 @@ export function CourseSubjectsPanel(props: { courseId: string; canManage: boolea
123123 </div>
124124 {error() && <p class="text-sm text-destructive">{error()}</p>}
125125 <div class="flex flex-wrap gap-2">
126- <Button type="submit" class="rounded-sm" disabled={pending()}>
126+ <Button type="submit" class="rounded-lg" disabled={pending()}>
127127 {editing() ? t("common.update") : t("common.create")}
128128 </Button>
129- <Button type="button" variant="outline" class="rounded-sm" onClick={() => setPanelOpen(false)}>
129+ <Button type="button" variant="outline" class="rounded-lg" onClick={() => setPanelOpen(false)}>
130130 {t("common.cancel")}
131131 </Button>
132132 </div>
@@ -157,7 +157,7 @@ export function CourseSubjectsPanel(props: { courseId: string; canManage: boolea
157157 }}
158158 />
159159
160- {error() && <p class="rounded-sm bg-destructive/10 px-3 py-2 text-sm text-destructive">{error()}</p>}
160+ {error() && <p class="rounded-xl bg-destructive/10 px-3 py-2 text-sm text-destructive">{error()}</p>}
161161
162162 <Suspense fallback={<DataTableSkeleton />}>
163163 <Show when={(subjects() ?? []).length > 0} fallback={<EmptyState title={t("subjects.empty")} />}>
src/components/courses/course-teachers-panel.tsxmodified+1 -1
@@ -49,7 +49,7 @@ export function CourseTeachersPanel(props: {
4949 <Button
5050 variant="ghost"
5151 size="sm"
52- class="h-8 w-8 p-0 text-destructive hover:bg-destructive/10"
52+ class="h-8 w-8 rounded-lg p-0 text-destructive hover:bg-destructive/10"
5353 onClick={() => setRemoveTarget(cell.row.original)}
5454 >
5555 <IconTrash class="h-4 w-4" />
src/components/exams/bank-question-form.tsxmodified+3 -3
@@ -86,11 +86,11 @@ export function BankQuestionForm(props: {
8686
8787 return (
8888 <div class="space-y-4">
89- <p class="rounded-lg border border-amber-500/20 bg-amber-500/8 px-3 py-2 text-xs text-muted-foreground">
89+ <p class="rounded-md border border-border-line bg-surface-overlay px-3 py-2 text-xs text-text-subtle">
9090 {t("bank.copyNotice")}
9191 </p>
9292
93- <div class="space-y-1.5 rounded-lg border bg-card p-3.5 shadow-xs">
93+ <div class="space-y-1.5 rounded-xl border border-border-line bg-surface-overlay p-3.5">
9494 <Label for="bank-course" class="text-xs font-semibold text-muted-foreground">{t("nav.courses")}</Label>
9595 <Select
9696 id="bank-course"
@@ -107,7 +107,7 @@ export function BankQuestionForm(props: {
107107 <p class="text-[11px] text-muted-foreground">{t("bank.courseHint")}</p>
108108 </div>
109109
110- <div class="space-y-1.5 rounded-lg border bg-card p-3.5 shadow-xs">
110+ <div class="space-y-1.5 rounded-xl border border-border-line bg-surface-overlay p-3.5">
111111 <Label for="bank-visibility" class="text-xs font-semibold text-muted-foreground">{t("bank.whoCanSee")}</Label>
112112 <Select
113113 id="bank-visibility"
src/components/exams/exam-form.tsxmodified+17 -17
@@ -206,8 +206,8 @@ export function ExamForm(props: {
206206 <>
207207 <form class="space-y-4" onSubmit={handleSubmit}>
208208 {/* Section 1: Basic Info */}
209- <div class="space-y-3 rounded-lg border border-sky-500/15 bg-sky-500/2.5 p-4 shadow-xs">
210- <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionBasic")}</h3>
209+ <div class="space-y-3 rounded-xl border border-border-line bg-surface-overlay p-4">
210+ <h3 class="text-xs font-semibold text-text-subtle">{t("exams.sectionBasic")}</h3>
211211 <div class="space-y-1.5">
212212 <Label for="exam-title">{t("form.title")}</Label>
213213 <Input
@@ -241,8 +241,8 @@ export function ExamForm(props: {
241241 </div>
242242
243243 {/* Section 2: Mode & Schedule */}
244- <div class="space-y-3 rounded-lg border border-amber-500/15 bg-amber-500/3 p-4 shadow-xs">
245- <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionSchedule")}</h3>
244+ <div class="space-y-3 rounded-xl border border-border-line bg-surface-overlay p-4">
245+ <h3 class="text-xs font-semibold text-text-subtle">{t("exams.sectionSchedule")}</h3>
246246 <div class="space-y-1.5">
247247 <Label for="exam-mode">{t("exams.mode")}</Label>
248248 <Select
@@ -319,8 +319,8 @@ export function ExamForm(props: {
319319 </div>
320320
321321 {/* Section 3: Time Limit / Duration */}
322- <div class="space-y-3 rounded-lg border border-indigo-500/15 bg-indigo-500/3 p-4 shadow-xs">
323- <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionDuration")}</h3>
322+ <div class="space-y-3 rounded-xl border border-border-line bg-surface-overlay p-4">
323+ <h3 class="text-xs font-semibold text-text-subtle">{t("exams.sectionDuration")}</h3>
324324 <label class="flex items-center gap-2 text-sm font-medium">
325325 <input
326326 type="checkbox"
@@ -339,7 +339,7 @@ export function ExamForm(props: {
339339 type="number"
340340 min={1}
341341 max={1440}
342- class="mt-1.5 h-9 bg-background/60"
342+ class="mt-1.5 h-9"
343343 placeholder="60"
344344 value={durationMinutes()}
345345 onInput={(e) => setDurationMinutes(e.currentTarget.value)}
@@ -349,10 +349,10 @@ export function ExamForm(props: {
349349 </div>
350350
351351 {/* Section 4: Participation & Attempts */}
352- <div class="space-y-3 rounded-lg border border-emerald-500/15 bg-emerald-500/3 p-4 shadow-xs">
353- <h3 class="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t("exams.sectionAccess")}</h3>
352+ <div class="space-y-3 rounded-xl border border-border-line bg-surface-overlay p-4">
353+ <h3 class="text-xs font-semibold text-text-subtle">{t("exams.sectionAccess")}</h3>
354354
355- <div class="rounded-xl border bg-background/60 px-3 py-2">
355+ <div class="rounded-md border border-border-line bg-surface-base px-3 py-2">
356356 <label class="flex items-start gap-2 text-sm">
357357 <input
358358 type="checkbox"
@@ -372,7 +372,7 @@ export function ExamForm(props: {
372372 <div class="ml-6 mt-2 flex items-center gap-2">
373373 <Input
374374 id="exam-max-attempts"
375- class="h-10 w-20 text-center"
375+ class="h-9 w-20 text-center"
376376 type="number"
377377 min={1}
378378 step={1}
@@ -385,7 +385,7 @@ export function ExamForm(props: {
385385 </Show>
386386 </div>
387387
388- <label class="flex items-start gap-2 rounded-xl border bg-background/60 px-3 py-2 text-sm">
388+ <label class="flex items-start gap-2 rounded-md border border-border-line bg-surface-base px-3 py-2 text-sm">
389389 <input
390390 type="checkbox"
391391 class="mt-0.5 h-4 w-4 shrink-0 rounded border-border"
@@ -398,7 +398,7 @@ export function ExamForm(props: {
398398 </div>
399399 </label>
400400
401- <label class="flex items-start gap-2 rounded-xl border bg-background/60 px-3 py-2 text-sm">
401+ <label class="flex items-start gap-2 rounded-md border border-border-line bg-surface-base px-3 py-2 text-sm">
402402 <input
403403 type="checkbox"
404404 class="mt-0.5 h-4 w-4 shrink-0 rounded border-border"
@@ -411,7 +411,7 @@ export function ExamForm(props: {
411411 </div>
412412 </label>
413413
414- <label class="flex items-start gap-2 rounded-xl border bg-background/60 px-3 py-2 text-sm">
414+ <label class="flex items-start gap-2 rounded-md border border-border-line bg-surface-base px-3 py-2 text-sm">
415415 <input
416416 type="checkbox"
417417 class="mt-0.5 h-4 w-4 shrink-0 rounded border-border"
@@ -427,12 +427,12 @@ export function ExamForm(props: {
427427
428428 {error() && <p class="text-sm text-destructive">{error()}</p>}
429429
430- <div class="sticky bottom-0 -mx-5 flex flex-wrap items-center gap-2 border-t border-border bg-background px-5 pb-6 pt-4 sm:-mx-6 sm:px-6 sm:pb-6">
431- <Button type="submit" class="flex-1 sm:flex-none" disabled={pending()}>
430+ <div class="sticky bottom-0 -mx-5 flex flex-wrap items-center gap-2 border-t border-border-hairline bg-surface-base px-5 pb-6 pt-4 sm:-mx-6 sm:px-6 sm:pb-6">
431+ <Button type="submit" class="flex-1 rounded-lg sm:flex-none" disabled={pending()}>
432432 {props.submitLabel ?? t("common.save")}
433433 </Button>
434434 {props.onCancel && (
435- <Button type="button" variant="outline" class="flex-1 sm:flex-none" onClick={props.onCancel}>
435+ <Button type="button" variant="outline" class="flex-1 rounded-lg sm:flex-none" onClick={props.onCancel}>
436436 {t("common.cancel")}
437437 </Button>
438438 )}
src/components/exams/exam-questions-panel.tsxmodified+12 -12
@@ -211,10 +211,10 @@ export function ExamQuestionsPanel(props: {
211211 <Alert variant="success">{flash()}</Alert>
212212 </Show>
213213
214- <div class="flex flex-wrap items-center justify-between gap-2 border-b border-border/50 pb-3">
214+ <div class="flex flex-wrap items-center justify-between gap-2 border-b border-border-hairline pb-3">
215215 <div class="flex items-center gap-2">
216216 <h2 class="text-base font-semibold">{t("questions.title")}</h2>
217- <Badge variant="secondary" class="rounded-full font-mono text-xs">
217+ <Badge variant="secondary" class="font-mono text-xs">
218218 {questionCount()}
219219 </Badge>
220220 </div>
@@ -288,13 +288,13 @@ export function ExamQuestionsPanel(props: {
288288 />
289289 </FormDialog>
290290
291- {error() && <p class="rounded-sm bg-destructive/10 px-3 py-2 text-sm text-destructive">{error()}</p>}
291+ {error() && <p class="rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive">{error()}</p>}
292292
293293 <Suspense fallback={<PageSpinner />}>
294294 <Show
295295 when={questionList().length > 0}
296296 fallback={
297- <div class="rounded-lg border border-dashed p-6 text-center">
297+ <div class="rounded-xl border border-dashed border-border-line bg-surface-overlay p-6 text-center">
298298 <p class="text-sm text-muted-foreground">{t("questions.empty")}</p>
299299 <Show when={!props.readOnly}>
300300 <Button
@@ -318,7 +318,7 @@ export function ExamQuestionsPanel(props: {
318318 <ol class="space-y-3">
319319 <For each={pageItems()}>
320320 {(q, index) => (
321- <li class="rounded-lg border bg-card p-4 shadow-2xs">
321+ <li class="rounded-xl border border-border-line bg-surface-base p-4">
322322 <div class="flex flex-wrap items-start justify-between gap-3">
323323 <div class="min-w-0 flex-1 space-y-2.5">
324324 <div class="flex flex-wrap items-center gap-2">
@@ -335,13 +335,13 @@ export function ExamQuestionsPanel(props: {
335335 {/* One badge per direction: a question can be both (added
336336 from the bank, then saved back), so they stack. */}
337337 <Show when={isFromBank(q)}>
338- <Badge variant="outline" class="gap-1 border-sky-500/40 text-sky-700 dark:text-sky-400">
338+ <Badge variant="outline" class="gap-1 border-brand/40 text-brand">
339339 <IconArchive class="h-3 w-3" />
340340 {t("bank.fromBankBadge")}
341341 </Badge>
342342 </Show>
343343 <Show when={isSavedToBank(q)}>
344- <Badge variant="outline" class="gap-1 border-amber-500/40 text-amber-700 dark:text-amber-400">
344+ <Badge variant="outline" class="gap-1 border-warning/50 bg-warning/10 text-warning">
345345 <IconArchive class="h-3 w-3" />
346346 {t("bank.savedToBankBadge")}
347347 </Badge>
@@ -351,7 +351,7 @@ export function ExamQuestionsPanel(props: {
351351 <img
352352 src={`/api/exams/${props.examId}/questions/${q.id}/image`}
353353 alt={t("questions.image")}
354- class="h-56 w-full max-w-2xl rounded-md border bg-muted/20 object-contain"
354+ class="h-56 w-full max-w-2xl rounded-md border border-border-line bg-surface-overlay object-contain"
355355 />
356356 </Show>
357357 <Show when={!props.readOnly && q.image}>
@@ -375,10 +375,10 @@ export function ExamQuestionsPanel(props: {
375375 class={
376376 choice.id === q.correct
377377 ? "flex items-start gap-3 rounded-md border border-primary/30 bg-primary/10 px-3 py-2 font-medium text-foreground"
378- : "flex items-start gap-3 rounded-md border border-transparent bg-muted/30 px-3 py-2 text-muted-foreground"
378+ : "flex items-start gap-3 rounded-md border border-border-hairline bg-surface-overlay px-3 py-2 text-muted-foreground"
379379 }
380380 >
381- <span class="mt-0.5 inline-flex h-5 min-w-5 items-center justify-center rounded-[3px] border bg-background font-mono text-[11px] font-bold text-foreground shadow-2xs">
381+ <span class="mt-0.5 inline-flex h-5 min-w-5 items-center justify-center rounded-[3px] border border-border-line bg-surface-base font-mono text-[11px] font-bold text-foreground">
382382 {String.fromCharCode(65 + choiceIndex())}
383383 </span>
384384 <span class="min-w-0 flex-1 space-y-2 whitespace-pre-wrap">
@@ -477,7 +477,7 @@ export function ExamQuestionsPanel(props: {
477477 type="button"
478478 variant="outline"
479479 size="sm"
480- class="h-8 gap-1 text-xs"
480+ class="h-8 gap-1 rounded-lg text-xs"
481481 disabled={safePage() <= 0}
482482 onClick={() => setPage((p) => Math.max(0, p - 1))}
483483 >
@@ -491,7 +491,7 @@ export function ExamQuestionsPanel(props: {
491491 type="button"
492492 variant="outline"
493493 size="sm"
494- class="h-8 gap-1 text-xs"
494+ class="h-8 gap-1 rounded-lg text-xs"
495495 disabled={safePage() >= totalPages() - 1}
496496 onClick={() => setPage((p) => Math.min(totalPages() - 1, p + 1))}
497497 >
src/components/exams/exam-result-badge.tsxmodified+2 -2
@@ -5,7 +5,7 @@ export function ExamResultBadge(props: { mark?: number | null; notGraded?: boole
55 const t = useT();
66 if (props.notGraded || props.mark == null) {
77 return (
8- <Badge variant="outline" class="rounded-sm px-3 py-1 text-sm">
8+ <Badge variant="outline" class="font-medium">
99 {t("exams.notGraded")}
1010 </Badge>
1111 );
@@ -13,7 +13,7 @@ export function ExamResultBadge(props: { mark?: number | null; notGraded?: boole
1313 const mark = props.mark;
1414 const variant = mark >= 70 ? "default" : mark >= 50 ? "secondary" : "destructive";
1515 return (
16- <Badge variant={variant} class="rounded-sm px-3 py-1 text-base font-semibold">
16+ <Badge variant={variant} class="font-semibold tabular-nums">
1717 {mark}/100
1818 </Badge>
1919 );
src/components/exams/grade-form.tsxmodified+1 -1
@@ -73,7 +73,7 @@ export function GradeForm(props: {
7373 <Label for="grade-mark">{t("form.mark")}</Label>
7474 <Input
7575 id="grade-mark"
76- class="rounded-sm"
76+ class="rounded-md"
7777 type="number"
7878 min={0}
7979 max={100}
src/components/homework/course-homework-panel.tsxmodified+6 -6
@@ -170,7 +170,7 @@ export function CourseHomeworkPanel(props: {
170170 id: "due_at",
171171 accessorFn: (row) => row.due_at,
172172 header: t("homework.dueAt"),
173- meta: { cellClass: "mono text-xs text-muted-foreground" },
173+ meta: { cellClass: "mono text-xs text-text-subtle" },
174174 cell: (cell) => formatDateTime(cell.row.original.due_at, locale()),
175175 },
176176 {
@@ -234,14 +234,14 @@ export function CourseHomeworkPanel(props: {
234234 <div class="space-y-1.5">
235235 <Label for="homework-due-date">{t("homework.dueAt")}</Label>
236236 <div class="grid grid-cols-2 gap-2">
237- <DatePicker id="homework-due-date" class="h-10" placeholder={t("form.datePlaceholder")} value={dueDate()} required onChange={setDueDate} />
238- <Input class="h-10 rounded-sm font-mono placeholder:text-muted-foreground/35" placeholder="17:00" value={dueTime()} required onInput={(event) => setDueTime(event.currentTarget.value)} />
237+ <DatePicker id="homework-due-date" class="h-9" placeholder={t("form.datePlaceholder")} value={dueDate()} required onChange={setDueDate} />
238+ <Input class="h-9 rounded-md font-mono placeholder:text-text-placeholder" placeholder="17:00" value={dueTime()} required onInput={(event) => setDueTime(event.currentTarget.value)} />
239239 </div>
240240 </div>
241- <p class="rounded-xl border bg-muted/30 px-3 py-2 text-xs text-muted-foreground">{t("homework.wholeCourseHelp")}</p>
241+ <p class="rounded-xl border border-border-line bg-surface-tint px-3 py-2 text-xs text-text-subtle">{t("homework.wholeCourseHelp")}</p>
242242 <div class="flex flex-wrap gap-2">
243- <Button type="submit" class="rounded-xl" disabled={pending() || (subjects() ?? []).length === 0}>{editing() ? t("common.update") : t("common.create")}</Button>
244- <Button type="button" variant="outline" class="rounded-xl" onClick={() => setPanelOpen(false)}>{t("common.cancel")}</Button>
243+ <Button type="submit" class="rounded-lg" disabled={pending() || (subjects() ?? []).length === 0}>{editing() ? t("common.update") : t("common.create")}</Button>
244+ <Button type="button" variant="outline" class="rounded-lg" onClick={() => setPanelOpen(false)}>{t("common.cancel")}</Button>
245245 </div>
246246 </form>
247247 </SidePanel>
src/components/homework/homework-submission-panel.tsxmodified+7 -7
@@ -141,7 +141,7 @@ export function HomeworkSubmissionPanel(props: { homeworkId: string }) {
141141 <section class="data-shell space-y-4 p-5">
142142 <div>
143143 <h2 class="text-lg font-semibold">{t("homework.submit")}</h2>
144- <p class="mt-1 text-sm text-muted-foreground">{t("homework.submitHelp")}</p>
144+ <p class="mt-1 text-sm text-text-subtle">{t("homework.submitHelp")}</p>
145145 </div>
146146 <Show when={flash()}>
147147 <Alert variant="success">{flash()}</Alert>
@@ -152,7 +152,7 @@ export function HomeworkSubmissionPanel(props: { homeworkId: string }) {
152152 <Suspense fallback={<PageSpinner />}>
153153 <Show when={result()}>
154154 {(row) => (
155- <div class="rounded-lg border bg-muted/20 p-3 text-sm">
155+ <div class="rounded-xl border border-border-line bg-surface-tint p-3 text-sm">
156156 <div class="flex flex-wrap items-center gap-2">
157157 <Badge variant="outline" class="rounded-full">{statusLabel(row().status)}</Badge>
158158 <Show when={row().mark != null}>
@@ -180,7 +180,7 @@ export function HomeworkSubmissionPanel(props: { homeworkId: string }) {
180180 </Show>
181181 </div>
182182 </form>
183- <div class={cn("rounded-lg border bg-background/70 p-3", hasFiles() && "space-y-3")}>
183+ <div class={cn("rounded-xl border border-border-line bg-surface-base p-3", hasFiles() && "space-y-3")}>
184184 <div class="flex flex-wrap items-center justify-between gap-2">
185185 <div class="flex items-center gap-2">
186186 <p class="text-sm font-medium">{t("notes.files")}</p>
@@ -201,11 +201,11 @@ export function HomeworkSubmissionPanel(props: { homeworkId: string }) {
201201 {(file) => {
202202 const meta = fileTypeMeta(file);
203203 return (
204- <li class="flex items-center gap-2 rounded-lg border bg-card px-2.5 py-2 text-sm">
205- <span class={`flex h-8 w-8 shrink-0 items-center justify-center rounded-md border ${meta.class}`}>{meta.icon}</span>
204+ <li class="flex items-center gap-2 rounded-xl border border-border-hairline bg-surface-base px-2.5 py-2 text-sm">
205+ <span class={`flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-border-hairline ${meta.class}`}>{meta.icon}</span>
206206 <div class="min-w-0 flex-1">
207207 <p class="truncate font-medium">{file.name}</p>
208- <p class="text-xs text-muted-foreground">{formatBytes(file.size)}</p>
208+ <p class="text-xs text-text-subtle">{formatBytes(file.size)}</p>
209209 </div>
210210 <a href={getHomeworkSubmissionFileUrl(props.homeworkId, file.id)} download={file.name}>
211211 <Button type="button" size="icon" variant="ghost" class="h-7 w-7 rounded-lg" title={t("notes.downloadFile")}>
@@ -222,7 +222,7 @@ export function HomeworkSubmissionPanel(props: { homeworkId: string }) {
222222 </ul>
223223 <Show when={submission()}>
224224 {(row) => (
225- <p class="text-xs text-muted-foreground">
225+ <p class="text-xs text-text-subtle">
226226 {t("homework.submittedAt")}: {formatDateTime(row().updated_at, locale())}
227227 <Show when={row().late}> · {t("homework.late")}</Show>
228228 </p>
src/components/homework/homework-submissions-panel.tsxmodified+10 -10
@@ -99,7 +99,7 @@ export function HomeworkSubmissionsPanel(props: { homeworkId: string; courseId:
9999 {(submission) => (
100100 <div class="space-y-1">
101101 <Badge variant="secondary" class="rounded-full">{t("homework.submitted")}</Badge>
102- <p class="text-xs text-muted-foreground">{formatDateTime(submission().updated_at, locale())}</p>
102+ <p class="text-xs text-text-subtle">{formatDateTime(submission().updated_at, locale())}</p>
103103 <Show when={submission().late}><p class="text-xs text-amber-600">{t("homework.late")}</p></Show>
104104 </div>
105105 )}
@@ -110,7 +110,7 @@ export function HomeworkSubmissionsPanel(props: { homeworkId: string; courseId:
110110 id: "result",
111111 header: t("homework.result"),
112112 cell: (cell) => (
113- <Show when={cell.row.original.result} fallback={<span class="text-muted-foreground">—</span>}>
113+ <Show when={cell.row.original.result} fallback={<span class="text-text-subtle">—</span>}>
114114 {(result) => (
115115 <div class="space-y-1">
116116 <Badge variant="outline" class="rounded-full">{statusLabel(result().status)}</Badge>
@@ -145,7 +145,7 @@ export function HomeworkSubmissionsPanel(props: { homeworkId: string; courseId:
145145 <section class="data-shell space-y-4 p-5">
146146 <div>
147147 <h2 class="text-lg font-semibold">{t("homework.submissions")}</h2>
148- <p class="mt-1 text-sm text-muted-foreground">{t("homework.submissionsHelp")}</p>
148+ <p class="mt-1 text-sm text-text-subtle">{t("homework.submissionsHelp")}</p>
149149 </div>
150150 <Show when={flash()}><Alert variant="success">{flash()}</Alert></Show>
151151 <Show when={error() && !gradeTarget()}><Alert variant="destructive">{error()}</Alert></Show>
@@ -178,18 +178,18 @@ export function HomeworkSubmissionsPanel(props: { homeworkId: string; courseId:
178178 <Show when={viewTarget()?.submission}>
179179 {(submission) => (
180180 <div class="space-y-4">
181- <div class="rounded-lg border bg-muted/20 p-3">
182- <p class="text-xs text-muted-foreground">{t("exams.textAnswer")}</p>
181+ <div class="rounded-xl border border-border-line bg-surface-tint p-3">
182+ <p class="text-xs text-text-subtle">{t("exams.textAnswer")}</p>
183183 <Show
184184 when={submission().text}
185- fallback={<p class="mt-2 text-sm text-muted-foreground">{t("homework.noAnswer")}</p>}
185+ fallback={<p class="mt-2 text-sm text-text-subtle">{t("homework.noAnswer")}</p>}
186186 >
187187 {(text) => <div class="mt-2 text-sm leading-relaxed" innerHTML={text()} />}
188188 </Show>
189189 </div>
190190 {/* Skipped entirely (not just an empty placeholder) when there are no files — this is a read-only view, so a "no files" row would just be dead weight. */}
191191 <Show when={submission().files.length > 0}>
192- <div class="space-y-2 rounded-lg border bg-background/70 p-3">
192+ <div class="space-y-2 rounded-xl border border-border-line bg-surface-base p-3">
193193 <div class="flex items-center gap-2">
194194 <p class="text-sm font-medium">{t("notes.files")}</p>
195195 <Badge variant="secondary" class="rounded-full">{submission().files.length}</Badge>
@@ -199,11 +199,11 @@ export function HomeworkSubmissionsPanel(props: { homeworkId: string; courseId:
199199 {(file) => {
200200 const meta = fileTypeMeta(file);
201201 return (
202- <li class="flex items-center gap-2 rounded-lg border bg-card px-2.5 py-2 text-sm">
203- <span class={`flex h-8 w-8 shrink-0 items-center justify-center rounded-md border ${meta.class}`}>{meta.icon}</span>
202+ <li class="flex items-center gap-2 rounded-xl border border-border-hairline bg-surface-base px-2.5 py-2 text-sm">
203+ <span class={`flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-border-hairline ${meta.class}`}>{meta.icon}</span>
204204 <div class="min-w-0 flex-1">
205205 <p class="truncate font-medium">{file.name}</p>
206- <p class="text-xs text-muted-foreground">{formatBytes(file.size)}</p>
206+ <p class="text-xs text-text-subtle">{formatBytes(file.size)}</p>
207207 </div>
208208 <a href={getHomeworkRosterSubmissionFileUrl(props.homeworkId, viewTarget()!.user, file.id)} download={file.name}>
209209 <Button type="button" size="icon" variant="ghost" class="h-7 w-7 rounded-lg" title={t("notes.downloadFile")}>
src/components/layout/app-shell.tsxmodified+11 -10
@@ -1,5 +1,6 @@
11 import { Show, createMemo, createSignal, type ParentProps } from "solid-js";
22 import { Link, useLocation, useNavigate } from "@tanstack/solid-router";
3+import { LogoMark } from "@/components/brand/logo-mark";
34 import { AccountProfileDialog } from "@/components/users/account-profile-dialog";
45 import { CelebiPanel } from "@/components/layout/celebi-panel";
56 import { CommandPalette } from "@/components/layout/command-palette";
@@ -20,7 +21,7 @@ import { ShellFeedProvider } from "@/stores/shell-feed-context";
2021 import { usePreferences, useT } from "@/stores/preferences-context";
2122 import { cn } from "@/lib/cn";
2223
23-const SIDEBAR_EXPANDED = "w-60";
24+const SIDEBAR_EXPANDED = "w-[260px]";
2425 const SIDEBAR_COLLAPSED = "w-24";
2526
2627 export function AppShell(props: ParentProps) {
@@ -48,7 +49,7 @@ export function AppShell(props: ParentProps) {
4849
4950 return (
5051 <div class="min-h-[var(--app-viewport)] bg-background text-foreground">
51- <Show when={!auth.user()}>
52+ <Show when={!auth.user() && location().pathname !== "/login"}>
5253 <NavBar />
5354 </Show>
5455 <ShellFeedProvider>
@@ -63,7 +64,7 @@ export function AppShell(props: ParentProps) {
6364 <div
6465 class={cn(
6566 "flex shrink-0 items-center gap-2 border-b border-border/70",
66- collapsed() ? "h-auto flex-col justify-center gap-1.5 px-2 py-2" : "h-16 px-3",
67+ collapsed() ? "h-auto flex-col justify-center gap-1.5 px-2 py-2" : "h-[45px] px-3",
6768 )}
6869 >
6970 <Link
@@ -71,8 +72,8 @@ export function AppShell(props: ParentProps) {
7172 class={cn("flex min-w-0 items-center gap-2.5", collapsed() ? "justify-center" : "flex-1")}
7273 title={t("app.name")}
7374 >
74- <span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary text-xs font-bold text-primary-foreground">
75- H
75+ <span class="flex h-8 w-8 shrink-0 items-center justify-center text-foreground">
76+ <LogoMark size={28} />
7677 </span>
7778 <Show when={!collapsed()}>
7879 <span class="truncate text-base font-semibold tracking-tight text-foreground dark:text-white 2xl:text-lg">{t("app.name")}</span>
@@ -109,8 +110,8 @@ export function AppShell(props: ParentProps) {
109110
110111 <main class="min-w-0 flex-1">
111112 <Show when={auth.user() && !fullScreen()}>
112- <header class="sticky top-[env(safe-area-inset-top)] z-30 flex h-16 items-center gap-3 border-b border-border/70 bg-background px-4 sm:px-6 lg:px-8">
113- <div class="flex min-w-0 shrink-0 items-center gap-2 sm:w-52 lg:w-60">
113+ <header class="sticky top-[env(safe-area-inset-top)] z-30 flex h-[45px] items-center gap-3 border-b border-border/70 bg-background px-4 sm:px-6 lg:px-4">
114+ <div class="flex min-w-0 shrink-0 items-center gap-2 sm:w-52 lg:w-[260px]">
114115 <Show when={location().pathname !== "/"}>
115116 <button
116117 type="button"
@@ -162,9 +163,9 @@ export function AppShell(props: ParentProps) {
162163 </Show>
163164 <div
164165 class={cn(
165- "mx-auto w-full px-4 py-6 sm:px-6 lg:px-8 lg:py-6",
166- auth.user() && !fullScreen() && "pb-[calc(5rem+max(env(safe-area-inset-bottom),var(--android-nav-inset,0px)))] lg:pb-6",
167- wide() ? "max-w-none" : "max-w-[1280px] xl:max-w-[1600px] 2xl:max-w-none",
166+ "mx-auto w-full px-4 py-6 sm:px-6 lg:px-10 lg:py-6",
167+ auth.user() && !fullScreen() && "pb-[calc(3.5rem+max(env(safe-area-inset-bottom),var(--android-nav-inset,0px)))] lg:pb-6",
168+ wide() ? "max-w-none" : "max-w-[1180px]",
168169 )}
169170 >
170171 {props.children}
src/components/layout/mobile-tab-bar.tsxmodified+5 -5
@@ -20,7 +20,7 @@ export function MobileTabBar(props: { onMenu: () => void }) {
2020 aria-label={t("nav.menu")}
2121 >
2222 <ul
23- class="mx-auto grid h-16 max-w-3xl"
23+ class="mx-auto grid h-14 max-w-3xl"
2424 style={{ "grid-template-columns": `repeat(${items().length + 1}, minmax(0, 1fr))` }}
2525 >
2626 <For each={items()}>
@@ -36,8 +36,8 @@ export function MobileTabBar(props: { onMenu: () => void }) {
3636 active() ? "text-foreground" : "text-muted-foreground",
3737 )}
3838 >
39- <span class={cn("flex h-8 w-10 items-center justify-center rounded-md", active() && "bg-muted")}>
40- <item.Icon class="h-4.5 w-4.5" />
39+ <span class="flex h-7 w-10 items-center justify-center">
40+ <item.Icon class="h-[22px] w-[22px]" />
4141 </span>
4242 <span class="max-w-full truncate">{t(item.labelKey)}</span>
4343 </Link>
@@ -52,8 +52,8 @@ export function MobileTabBar(props: { onMenu: () => void }) {
5252 class="flex h-full w-full flex-col items-center justify-center gap-1 px-1 text-[10px] font-medium text-muted-foreground"
5353 onClick={() => props.onMenu()}
5454 >
55- <span class="flex h-8 w-10 items-center justify-center rounded-md">
56- <IconMenu class="h-4.5 w-4.5" />
55+ <span class="flex h-7 w-10 items-center justify-center">
56+ <IconMenu class="h-[22px] w-[22px]" />
5757 </span>
5858 <span class="truncate">{t("nav.menu")}</span>
5959 </button>
src/components/layout/nav-bar.tsxmodified+6 -3
@@ -1,5 +1,6 @@
11 import { Link } from "@tanstack/solid-router";
22 import { Show, createSignal } from "solid-js";
3+import { LogoMark } from "@/components/brand/logo-mark";
34 import { Button } from "@/components/ui/button";
45 import { SideNav } from "@/components/layout/side-nav";
56 import { UserMenu } from "@/components/layout/user-menu";
@@ -32,8 +33,8 @@ export function NavBar() {
3233 </Show>
3334
3435 <Link to="/" class="flex min-w-0 items-center gap-2.5">
35- <span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary text-xs font-bold text-primary-foreground">
36- H
36+ <span class="flex h-8 w-8 shrink-0 items-center justify-center text-foreground">
37+ <LogoMark size={28} />
3738 </span>
3839 <span class="truncate text-base font-semibold tracking-tight sm:text-lg">
3940 {t("app.name")}
@@ -63,7 +64,9 @@ export function NavBar() {
6364 <aside class="absolute inset-y-0 left-0 flex w-72 max-w-[85vw] flex-col border-r border-border bg-sidebar pb-[max(env(safe-area-inset-bottom),var(--android-nav-inset,0px))] pt-[env(safe-area-inset-top)] shadow-sm">
6465 <div class="flex h-14 shrink-0 items-center justify-between gap-2 border-b border-border px-3">
6566 <span class="flex min-w-0 items-center gap-2">
66- <span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary text-xs font-bold text-primary-foreground">H</span>
67+ <span class="flex h-8 w-8 shrink-0 items-center justify-center text-foreground">
68+ <LogoMark size={28} />
69+ </span>
6770 <span class="truncate text-base font-semibold">{t("app.name")}</span>
6871 </span>
6972 <Button
src/components/layout/page-header.tsxmodified+6 -4
@@ -16,7 +16,7 @@ export function PageHeader(
1616 return (
1717 <div
1818 class={cn(
19- "rounded-xl border border-border/60 bg-card text-card-foreground shadow-sm",
19+ "text-foreground",
2020 props.class,
2121 )}
2222 >
@@ -24,8 +24,8 @@ export function PageHeader(
2424 class={cn(
2525 "flex flex-col sm:flex-row sm:items-center sm:justify-between",
2626 props.compact
27- ? "gap-3 px-4 py-3 sm:px-5 sm:py-3.5"
28- : "gap-4 px-4 py-4 sm:px-5 sm:py-5",
27+ ? "min-h-[66px] gap-3 py-1"
28+ : "min-h-[66px] gap-4 py-1",
2929 )}
3030 >
3131 <div class={cn("min-w-0", props.compact ? "space-y-0.5" : "max-w-2xl space-y-1")}>
@@ -35,7 +35,9 @@ export function PageHeader(
3535 <h1
3636 class={cn(
3737 "font-semibold tracking-tight",
38- props.compact ? "text-lg sm:text-xl" : "text-xl sm:text-2xl",
38+ props.compact
39+ ? "text-xl leading-7 sm:text-[28px] sm:leading-9"
40+ : "text-2xl leading-8 sm:text-[28px] sm:leading-9",
3941 )}
4042 >
4143 {props.title}
src/components/layout/side-nav.tsxmodified+3 -3
@@ -36,7 +36,7 @@ export function SideNav(props: { onNavigate?: () => void; collapsed?: boolean })
3636 title={t(item.labelKey)}
3737 aria-current={active() ? "page" : undefined}
3838 class={cn(
39- "relative flex h-9 items-center rounded-md text-[13px] font-medium outline-hidden transition-colors focus-visible:ring-2 focus-visible:ring-ring",
39+ "relative flex h-[34px] items-center rounded-lg text-[13px] font-medium outline-hidden transition-colors focus-visible:ring-2 focus-visible:ring-ring",
4040 props.collapsed ? "mx-auto h-10 w-12 justify-center px-0" : "gap-3 px-3",
4141 active()
4242 ? "bg-primary/10 text-primary"
@@ -81,7 +81,7 @@ export function SideNav(props: { onNavigate?: () => void; collapsed?: boolean })
8181 class={cn(
8282 // Active submenu item: bold foreground text + a bright segment over
8383 // the group's left guide line (no filled pill).
84- "relative flex h-8 items-center gap-2.5 rounded-md px-2.5 text-[13px] outline-hidden transition-colors focus-visible:ring-2 focus-visible:ring-ring",
84+ "relative flex h-[30px] items-center gap-2.5 rounded-md px-2.5 text-[13px] outline-hidden transition-colors focus-visible:ring-2 focus-visible:ring-ring",
8585 itemActive()
8686 ? "font-semibold text-foreground before:absolute before:-left-[9px] before:top-1 before:bottom-1 before:w-0.5 before:rounded-full before:bg-foreground"
8787 : "font-medium text-muted-foreground hover:bg-muted/70 hover:text-foreground",
@@ -116,7 +116,7 @@ export function SideNav(props: { onNavigate?: () => void; collapsed?: boolean })
116116 <details class="group/nav" open={active()}>
117117 <summary
118118 class={cn(
119- "flex h-9 cursor-pointer list-none items-center gap-3 rounded-md px-3 text-[13px] font-medium outline-hidden transition-colors focus-visible:ring-2 focus-visible:ring-ring [&::-webkit-details-marker]:hidden",
119+ "flex h-[34px] cursor-pointer list-none items-center gap-3 rounded-lg px-3 text-[13px] font-medium outline-hidden transition-colors focus-visible:ring-2 focus-visible:ring-ring [&::-webkit-details-marker]:hidden",
120120 active()
121121 ? "bg-muted/70 text-foreground"
122122 : "text-muted-foreground hover:bg-muted/70 hover:text-foreground",
src/components/layout/sidebar-account.tsxmodified+17 -2
@@ -1,6 +1,8 @@
11 import { useNavigate } from "@tanstack/solid-router";
2-import { Show, createSignal } from "solid-js";
2+import { Show, createResource, createSignal } from "solid-js";
33 import type { User } from "@/api/client";
4+import { getMyProfile } from "@/api/users";
5+import { avatarRevision } from "@/lib/avatar";
46 import type { MessageKey } from "@/i18n/messages";
57 import { AccountProfileDialog } from "@/components/users/account-profile-dialog";
68 import {
@@ -28,6 +30,18 @@ export function SidebarAccount(props: { collapsed?: boolean; onLogout: () => voi
2830 const navigate = useNavigate();
2931 const [profileOpen, setProfileOpen] = createSignal(false);
3032
33+ // The auth user carries no avatar meta, so without this both chips below
34+ // attempt the image and 404 when there is no photo. One profile read tells
35+ // both; it re-reads on every avatar upload/delete via avatarRevision, and
36+ // stays unfetched while logged out.
37+ const [profile] = createResource(() => (auth.user() ? avatarRevision() : null), () =>
38+ getMyProfile(),
39+ );
40+ const hasAvatar = () => {
41+ const p = profile();
42+ return p ? p.avatar !== null : false;
43+ };
44+
3145 return (
3246 <>
3347 <Show when={auth.user()}>
@@ -49,6 +63,7 @@ export function SidebarAccount(props: { collapsed?: boolean; onLogout: () => voi
4963 <UserAvatar
5064 userId={u().id}
5165 name={name()}
66+ hasAvatar={hasAvatar()}
5267 size="sm"
5368 class={props.collapsed ? "h-9 w-9" : undefined}
5469 />
@@ -68,7 +83,7 @@ export function SidebarAccount(props: { collapsed?: boolean; onLogout: () => voi
6883 class="m-1.5 gap-2.5 rounded-xl bg-muted/70 p-2.5 focus:bg-muted data-highlighted:bg-muted dark:bg-white/8 dark:focus:bg-white/10 dark:data-highlighted:bg-white/10"
6984 onSelect={() => void navigate({ to: "/profile/me" })}
7085 >
71- <UserAvatar userId={u().id} name={name()} size="md" class="ring-0" />
86+ <UserAvatar userId={u().id} name={name()} hasAvatar={hasAvatar()} size="md" class="ring-0" />
7287 <span class="min-w-0 flex-1">
7388 <span class="block truncate text-sm font-semibold">{name()}</span>
7489 <span class="block truncate text-xs text-muted-foreground dark:text-white/60">{t("profile.myProfile")}</span>
src/components/marks/marks-report-view.tsxmodified+1 -1
@@ -130,7 +130,7 @@ export function MarksReportView(props: { report: MarksReport; compact?: boolean
130130 class="min-w-0"
131131 columns={columns()}
132132 data={block.results}
133- tableClass={cn("w-full", compact() ? "text-xs" : "table-fixed min-w-xl")}
133+ tableClass={cn("w-full", compact() ? "text-xs" : "table-fixed sm:min-w-xl")}
134134 enableColumnVisibility={false}
135135 />
136136 </Show>
src/components/meals/meal-menu-card.tsxmodified+5 -5
@@ -10,21 +10,21 @@ export function MealMenuCard(props: { menu: MealMenu; locale: string; labels: {
1010 const conflicts = () => [...new Set(props.menu.dishes.flatMap((dish) => dish.conflicts))];
1111
1212 return (
13- <Link to="/meals/$id" params={{ id: props.menu.id }} class="group flex min-h-56 flex-col rounded-lg border border-border/70 bg-card p-4 shadow-2xs transition hover:-translate-y-0.5 hover:border-primary/40 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">
13+ <Link to="/meals/$id" params={{ id: props.menu.id }} class="group flex min-h-56 flex-col rounded-xl border border-border-line bg-surface-base p-4 transition hover:-translate-y-0.5 hover:border-primary/40 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">
1414 <div class="flex items-start justify-between gap-3">
1515 <div class="flex min-w-0 items-center gap-3">
16- <span class="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border bg-muted/40"><IconUtensils class="h-5 w-5" /></span>
17- <div><h2 class="font-semibold">{props.menu.slot}</h2><time class="mono text-xs text-muted-foreground" datetime={props.menu.date}>{props.menu.date}</time></div>
16+ <span class="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-border-hairline bg-surface-tint"><IconUtensils class="h-5 w-5" /></span>
17+ <div><h2 class="font-semibold text-text-strong">{props.menu.slot}</h2><time class="mono text-xs text-text-subtle" datetime={props.menu.date}>{props.menu.date}</time></div>
1818 </div>
1919 <span class="font-semibold tabular-nums">{formatTry(total(), props.locale)}</span>
2020 </div>
2121 <div class="mt-4 flex flex-wrap gap-1.5"><For each={props.menu.dishes}>{(dish) => <Badge variant="outline">{dish.name}</Badge>}</For></div>
2222 <Show when={conflicts().length > 0}>
23- <div class="mt-3 flex items-start gap-2 rounded-xl border border-amber-500/40 bg-amber-500/10 p-2 text-xs text-amber-800 dark:text-amber-200">
23+ <div class="mt-3 flex items-start gap-2 rounded-xl border border-warning/50 bg-warning/10 p-2 text-xs text-warning">
2424 <IconAlert class="mt-0.5 h-4 w-4" /><span>{props.labels.conflict}: {conflicts().join(", ")}</span>
2525 </div>
2626 </Show>
27- <div class="mt-auto flex justify-between border-t border-border/60 pt-3 text-xs text-muted-foreground">
27+ <div class="mt-auto flex justify-between border-t border-border-hairline pt-3 text-xs text-text-subtle">
2828 <span>{props.menu.dishes.length} {props.labels.dishes}</span>
2929 <span>{props.labels.capacity}: <span class="mono">{props.menu.capacity ?? "∞"}</span></span>
3030 </div>
src/components/messages/gmail-compose-box.tsxmodified+7 -7
@@ -81,11 +81,11 @@ export function GmailComposeBox(props: GmailComposeBoxProps) {
8181 return (
8282 <Show when={props.open}>
8383 <div
84- class="fixed inset-x-0 bottom-0 z-50 w-full rounded-t-2xl border border-border/80 bg-card pb-[max(env(safe-area-inset-bottom),var(--android-nav-inset,0px))] shadow-2xl transition-all duration-200 sm:inset-x-auto sm:right-6 sm:w-[560px] sm:rounded-t-lg sm:pb-0"
84+ class="fixed inset-x-0 bottom-0 z-50 w-full rounded-t-2xl border border-border-line bg-surface-base pb-[max(env(safe-area-inset-bottom),var(--android-nav-inset,0px))] shadow-2xl shadow-black/20 transition-all duration-200 sm:inset-x-auto sm:right-6 sm:w-[560px] sm:rounded-t-xl sm:pb-0"
8585 style={{ "max-height": isMinimized() ? "44px" : "640px" }}
8686 >
8787 {/* Gmail Header */}
88- <div class="flex h-9 items-center justify-between rounded-t-lg border-b bg-muted/80 px-4">
88+ <div class="flex h-9 items-center justify-between rounded-t-xl border-b border-border-hairline bg-surface-overlay px-4">
8989 <div class="flex items-center gap-2">
9090 <span class="h-2.5 w-2.5 rounded-full bg-primary" />
9191 <h3 class="text-xs font-bold text-foreground truncate max-w-[340px]">
@@ -116,7 +116,7 @@ export function GmailComposeBox(props: GmailComposeBoxProps) {
116116 <Show when={!isMinimized()}>
117117 <form class="flex h-[min(520px,60vh)] flex-col sm:h-[520px]" onSubmit={handleSend}>
118118 {/* Recipient Line */}
119- <div class="flex items-center border-b px-3 py-1.5 gap-2 text-xs">
119+ <div class="flex items-center border-b border-border-hairline px-3 py-1.5 gap-2 text-xs">
120120 <span class="w-12 font-medium text-muted-foreground shrink-0">
121121 {t("messages.recipient")}:
122122 </span>
@@ -132,7 +132,7 @@ export function GmailComposeBox(props: GmailComposeBoxProps) {
132132 </div>
133133
134134 {/* Subject Line */}
135- <div class="flex items-center border-b px-3 py-1 gap-2 text-xs">
135+ <div class="flex items-center border-b border-border-hairline px-3 py-1 gap-2 text-xs">
136136 <span class="w-12 font-medium text-muted-foreground shrink-0">
137137 {t("form.title")}:
138138 </span>
@@ -147,7 +147,7 @@ export function GmailComposeBox(props: GmailComposeBoxProps) {
147147 </div>
148148
149149 {/* Optional Label Tag Line */}
150- <div class="flex items-center border-b px-3 py-1 gap-2 text-xs">
150+ <div class="flex items-center border-b border-border-hairline px-3 py-1 gap-2 text-xs">
151151 <span class="w-12 font-medium text-muted-foreground shrink-0">
152152 Etiket:
153153 </span>
@@ -175,11 +175,11 @@ export function GmailComposeBox(props: GmailComposeBoxProps) {
175175 </Show>
176176
177177 {/* Gmail Bottom Action Toolbar */}
178- <div class="flex items-center justify-between border-t bg-muted/30 px-3 py-2.5">
178+ <div class="flex items-center justify-between border-t border-border-hairline bg-surface-tint px-3 py-2.5">
179179 <Button
180180 type="submit"
181181 size="sm"
182- class="h-9 rounded-md bg-primary px-5 font-semibold text-primary-foreground shadow-sm hover:bg-primary/90"
182+ class="h-9 rounded-lg px-5 font-semibold"
183183 disabled={pending()}
184184 >
185185 <IconSend class="mr-2 h-4 w-4" />
src/components/messages/gmail-mail-detail.tsxmodified+9 -9
@@ -110,7 +110,7 @@ export function GmailMailDetail(props: GmailMailDetailProps) {
110110 return (
111111 <div class="flex flex-col h-full bg-background overflow-auto">
112112 {/* Top Gmail Navigation & Action Bar */}
113- <div class="sticky top-0 z-10 flex items-center justify-between gap-2 border-b bg-card/90 px-3 py-2.5 backdrop-blur-xs sm:px-4">
113+ <div class="sticky top-0 z-10 flex items-center justify-between gap-2 border-b border-border-hairline bg-surface-base/90 px-3 py-2.5 backdrop-blur-xs sm:px-4">
114114 {/* The action set is wider than a phone, so it scrolls sideways instead
115115 of squeezing every button or wrapping into a second bar. */}
116116 <div class="no-scrollbar flex min-w-0 flex-1 items-center gap-2 overflow-x-auto">
@@ -224,7 +224,7 @@ export function GmailMailDetail(props: GmailMailDetailProps) {
224224 {/* Main Mail Content View Container */}
225225 <div class="flex-1 p-4 sm:p-6 max-w-4xl mx-auto w-full space-y-6">
226226 {/* Email Subject Title Header */}
227- <div class="flex items-center justify-between gap-3 border-b pb-4">
227+ <div class="flex items-center justify-between gap-3 border-b border-border-hairline pb-4">
228228 <div class="flex items-center gap-3">
229229 <h1 class="text-xl font-bold tracking-tight text-foreground">
230230 {props.message.subject}
@@ -240,7 +240,7 @@ export function GmailMailDetail(props: GmailMailDetailProps) {
240240 {/* Sender Info Card */}
241241 <div class="flex items-start justify-between gap-4">
242242 <div class="flex items-center gap-3 min-w-0">
243- <div class="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary font-bold text-sm text-primary-foreground shadow-2xs">
243+ <div class="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-primary font-bold text-sm text-primary-foreground">
244244 {peerName().charAt(0).toUpperCase()}
245245 </div>
246246 <div class="min-w-0">
@@ -275,13 +275,13 @@ export function GmailMailDetail(props: GmailMailDetailProps) {
275275 </div>
276276
277277 {/* Email Body Card */}
278- <div class="rounded-lg border border-border/80 bg-card p-6 shadow-2xs leading-relaxed text-sm text-foreground/90 whitespace-pre-wrap min-h-[140px]">
278+ <div class="rounded-xl border border-border-line bg-surface-base p-6 leading-relaxed text-sm text-foreground/90 whitespace-pre-wrap min-h-[140px]">
279279 <div innerHTML={props.message.body} />
280280 </div>
281281
282282 {/* Gmail Style Inline Reply Area */}
283283 <Show when={!isSent()}>
284- <div class="pt-4 border-t">
284+ <div class="pt-4 border-t border-border-hairline">
285285 <Show
286286 when={isReplying()}
287287 fallback={
@@ -289,7 +289,7 @@ export function GmailMailDetail(props: GmailMailDetailProps) {
289289 <div class="flex items-center gap-3">
290290 <Button
291291 variant="outline"
292- class="rounded-xl px-5 h-9 text-xs font-semibold hover:bg-accent"
292+ class="rounded-lg px-5 h-9 text-xs font-semibold hover:bg-accent"
293293 onClick={handleStartReply}
294294 >
295295 <IconMessage class="mr-2 h-4 w-4" />
@@ -301,9 +301,9 @@ export function GmailMailDetail(props: GmailMailDetailProps) {
301301 {/* Gmail Inline Reply Editor */}
302302 <form
303303 onSubmit={handleSendReply}
304- class="rounded-lg border border-border bg-card p-4 shadow-xs space-y-3"
304+ class="rounded-xl border border-border-line bg-surface-base p-4 shadow-xs space-y-3"
305305 >
306- <div class="flex items-center justify-between text-xs border-b pb-2">
306+ <div class="flex items-center justify-between text-xs border-b border-border-hairline pb-2">
307307 <div class="flex items-center gap-2">
308308 <span class="font-bold text-foreground">{t("messages.replyTo")}</span>
309309 <Badge variant="secondary" class="text-xs font-medium">
@@ -334,7 +334,7 @@ export function GmailMailDetail(props: GmailMailDetailProps) {
334334 <Button
335335 type="submit"
336336 size="sm"
337- class="rounded-xl px-5 h-9 bg-primary font-semibold text-primary-foreground shadow-2xs hover:bg-primary/90"
337+ class="rounded-lg px-5 h-9 font-semibold"
338338 disabled={sending() || !replyBody().trim()}
339339 >
340340 <IconSend class="mr-2 h-4 w-4" />
src/components/messages/gmail-mail-row.tsxmodified+3 -3
@@ -47,9 +47,9 @@ export function GmailMailRow(props: GmailMailRowProps) {
4747 // A phone cannot fit sender, subject, snippet, date and actions on one
4848 // 40px line, so below sm: the row stacks and grows to a thumb-sized
4949 // target; from sm: up it stays the dense single line it always was.
50- "group relative flex shrink-0 cursor-pointer select-none flex-col gap-0.5 border-b border-l-4 border-border/60 px-3 py-2.5 text-xs transition-colors duration-150",
50+ "group relative flex shrink-0 cursor-pointer select-none flex-col gap-0.5 border-b border-l-4 border-border-hairline px-3 py-2.5 text-xs transition-colors duration-150",
5151 "sm:h-10 sm:flex-row sm:items-center sm:gap-3 sm:px-4 sm:py-0",
52- unread() ? "border-l-primary bg-card font-semibold text-foreground hover:bg-accent/40" : "border-l-transparent bg-background/60 text-muted-foreground hover:bg-muted/50",
52+ unread() ? "border-l-primary bg-surface-base font-semibold text-foreground hover:bg-accent/40" : "border-l-transparent bg-surface-overlay text-muted-foreground hover:bg-muted/50",
5353 props.isSelected && "bg-accent/80 text-foreground"
5454 )}
5555 onClick={props.onSelect}
@@ -66,7 +66,7 @@ export function GmailMailRow(props: GmailMailRowProps) {
6666 {isSent() ? `${t("messages.to")}${peerName()}` : peerName()}
6767 </span>
6868 <Show when={role()}>
69- <span class="shrink-0 text-[9px] uppercase font-mono px-1 py-0.2 rounded bg-muted text-muted-foreground border border-border/50">
69+ <span class="shrink-0 text-[9px] uppercase font-mono px-1 py-0.2 rounded bg-muted text-muted-foreground border border-border-hairline">
7070 {t(`role.${role()}` as any)}
7171 </span>
7272 </Show>
src/components/ui/alert.tsxmodified+7 -5
@@ -3,17 +3,19 @@ import { splitProps } from "solid-js";
33 import { cn } from "@/lib/cn";
44
55 export function Alert(
6- props: ParentProps<ComponentProps<"div"> & { variant?: "default" | "destructive" | "success" }>,
6+ props: ParentProps<ComponentProps<"div"> & { variant?: "default" | "destructive" | "success" | "warning" | "info" }>,
77 ) {
88 const [local, rest] = splitProps(props, ["class", "children", "variant"]);
99 return (
1010 <div
1111 role="alert"
1212 class={cn(
13- "relative w-full rounded-lg border px-4 py-3 text-sm",
14- local.variant === "destructive" && "border-destructive/50 text-destructive",
15- local.variant === "success" && "border-emerald-600/30 bg-emerald-500/10 text-emerald-800 dark:text-emerald-300 font-medium",
16- (!local.variant || local.variant === "default") && "bg-background text-foreground",
13+ "relative flex min-h-[70px] w-full items-center rounded-lg border px-5 py-4 text-sm",
14+ local.variant === "destructive" && "border-destructive/30 bg-destructive/10 text-destructive",
15+ local.variant === "success" && "border-success/30 bg-success/10 font-medium text-success",
16+ local.variant === "warning" && "border-warning/30 bg-warning/10 font-medium text-warning",
17+ local.variant === "info" && "border-info/30 bg-info/10 font-medium text-info",
18+ (!local.variant || local.variant === "default") && "border-border-line bg-surface-base text-foreground",
1719 local.class,
1820 )}
1921 {...rest}
src/components/ui/badge.tsxmodified+4 -1
@@ -4,7 +4,7 @@ import { splitProps } from "solid-js";
44 import { cn } from "@/lib/cn";
55
66 const badgeVariants = cva(
7- "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring/70 focus:ring-offset-1",
7+ "inline-flex h-5 min-h-5 items-center rounded-full border px-2 text-xs font-semibold leading-none transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring/70 focus:ring-offset-1",
88 {
99 variants: {
1010 variant: {
@@ -12,6 +12,9 @@ const badgeVariants = cva(
1212 secondary: "border-transparent bg-secondary text-secondary-foreground",
1313 outline: "border-border text-foreground",
1414 destructive: "border-transparent bg-destructive/90 text-destructive-foreground",
15+ success: "border-transparent bg-success/15 text-success",
16+ warning: "border-transparent bg-warning/15 text-warning",
17+ info: "border-transparent bg-info/15 text-info",
1518 },
1619 },
1720 defaultVariants: {
src/components/ui/button.tsxmodified+3 -3
@@ -4,7 +4,7 @@ import { type ComponentProps, type ValidComponent, splitProps } from "solid-js";
44 import { cn } from "@/lib/cn";
55
66 export const buttonVariants = cva(
7- "inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/75 focus-visible:ring-offset-1 focus-visible:ring-offset-background active:scale-[0.98] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
7+ "inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/75 focus-visible:ring-offset-1 focus-visible:ring-offset-background active:scale-[0.98] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
88 {
99 variants: {
1010 variant: {
@@ -18,8 +18,8 @@ export const buttonVariants = cva(
1818 link: "text-primary underline-offset-4 hover:underline active:scale-100",
1919 },
2020 size: {
21- default: "h-9 px-4 py-2",
22- sm: "h-8 rounded-md px-3 text-xs",
21+ default: "h-9 rounded-lg px-3 py-2",
22+ sm: "h-[26px] gap-1 rounded-md px-2 text-xs",
2323 lg: "h-10 rounded-md px-8",
2424 icon: "h-9 w-9",
2525 },
src/components/ui/card.tsxmodified+1 -1
@@ -7,7 +7,7 @@ export function Card(props: ParentProps<ComponentProps<"div">>) {
77 return (
88 <div
99 class={cn(
10- "rounded-lg border bg-card text-card-foreground shadow-sm",
10+ "rounded-lg border border-border-line bg-surface-base text-card-foreground shadow-sm",
1111 local.class,
1212 )}
1313 {...rest}
src/components/ui/chart-bar.tsxmodified+3 -3
@@ -48,9 +48,9 @@ export const ChartBar: Component<ChartBarProps> = (props) => {
4848 });
4949
5050 return (
51- <div class={cn("flex flex-col gap-4 rounded-lg border border-border bg-card p-4 shadow-sm", props.class)}>
51+ <div class={cn("flex flex-col gap-4 rounded-xl border border-border-line bg-surface-base p-4", props.class)}>
5252 <Show when={props.title}>
53- <div class="border-b border-border pb-3">
53+ <div class="border-b border-border-hairline pb-3">
5454 <div>
5555 <h3 class="text-sm font-semibold tracking-tight text-foreground">{props.title}</h3>
5656 <Show when={props.subtitle}>
@@ -91,7 +91,7 @@ export const ChartBar: Component<ChartBarProps> = (props) => {
9191 </span>
9292 </div>
9393
94- <div class="relative h-2.5 w-full overflow-hidden rounded-full bg-muted/60 dark:bg-muted/40">
94+ <div class="relative h-2.5 w-full overflow-hidden rounded-full bg-surface-fill">
9595 <div
9696 class={cn(
9797 "h-full rounded-full transition-all duration-500 ease-out",
src/components/ui/chart-heatmap.tsxmodified+3 -3
@@ -133,9 +133,9 @@ export const ChartHeatmap: Component<ChartHeatmapProps> = (props) => {
133133 const hasData = createMemo(() => maxValue() > 0);
134134
135135 return (
136- <div class={cn("flex flex-col gap-4 rounded-lg border border-border bg-card p-4 shadow-sm", props.class)}>
136+ <div class={cn("flex flex-col gap-4 rounded-xl border border-border-line bg-surface-base p-4", props.class)}>
137137 <Show when={props.title}>
138- <div class="border-b border-border pb-3">
138+ <div class="border-b border-border-hairline pb-3">
139139 <h3 class="text-sm font-semibold tracking-tight text-foreground">{props.title}</h3>
140140 <Show when={props.subtitle}>
141141 <p class="mt-0.5 text-xs text-muted-foreground">{props.subtitle}</p>
@@ -215,7 +215,7 @@ export const ChartHeatmap: Component<ChartHeatmapProps> = (props) => {
215215 </div>
216216 </div>
217217
218- <div class="flex flex-wrap items-center justify-between gap-2 border-t border-border pt-3">
218+ <div class="flex flex-wrap items-center justify-between gap-2 border-t border-border-hairline pt-3">
219219 <Show when={props.footer}>
220220 <p class="text-[11px] text-muted-foreground">{props.footer}</p>
221221 </Show>
src/components/ui/chart-line.tsxmodified+6 -6
@@ -69,9 +69,9 @@ export const ChartLine: Component<ChartLineProps> = (props) => {
6969 const averageY = () => PADDING.top + (1 - Math.min(1, summary()!.average / maxValue())) * plotHeight;
7070
7171 return (
72- <div class={cn("flex flex-col gap-4 rounded-lg border border-border bg-card p-4 shadow-sm", props.class)}>
72+ <div class={cn("flex flex-col gap-4 rounded-xl border border-border-line bg-surface-base p-4", props.class)}>
7373 <Show when={props.title}>
74- <div class="border-b border-border pb-3">
74+ <div class="border-b border-border-hairline pb-3">
7575 <h3 class="text-sm font-semibold tracking-tight text-foreground">{props.title}</h3>
7676 <Show when={props.subtitle}>
7777 <p class="mt-0.5 text-xs text-muted-foreground">{props.subtitle}</p>
@@ -91,19 +91,19 @@ export const ChartLine: Component<ChartLineProps> = (props) => {
9191 {(stats) => (
9292 <div class="space-y-3">
9393 <dl class="grid grid-cols-2 gap-2 sm:grid-cols-4">
94- <div class="rounded-md bg-muted/35 px-2.5 py-2">
94+ <div class="rounded-lg bg-surface-overlay px-2.5 py-2">
9595 <dt class="text-[10px] text-muted-foreground">{t("dashboard.chartExamCount")}</dt>
9696 <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{props.items.length}</dd>
9797 </div>
98- <div class="rounded-md bg-muted/35 px-2.5 py-2">
98+ <div class="rounded-lg bg-surface-overlay px-2.5 py-2">
9999 <dt class="text-[10px] text-muted-foreground">{t("dashboard.chartLatest")}</dt>
100100 <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{stats().latest.formattedValue ?? stats().latest.value}</dd>
101101 </div>
102- <div class="rounded-md bg-muted/35 px-2.5 py-2">
102+ <div class="rounded-lg bg-surface-overlay px-2.5 py-2">
103103 <dt class="text-[10px] text-muted-foreground">{t("dashboard.chartAverage")}</dt>
104104 <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{stats().average.toFixed(1)}</dd>
105105 </div>
106- <div class="rounded-md bg-muted/35 px-2.5 py-2">
106+ <div class="rounded-lg bg-surface-overlay px-2.5 py-2">
107107 <dt class="text-[10px] text-muted-foreground">{t("dashboard.chartRange")}</dt>
108108 <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{stats().minimum.toFixed(1)}–{stats().maximum.toFixed(1)}</dd>
109109 </div>
src/components/ui/chart-progress-ring.tsxmodified+4 -4
@@ -42,9 +42,9 @@ export const ChartProgressRing: Component<ChartProgressRingProps> = (props) => {
4242 });
4343
4444 return (
45- <div class={cn("flex flex-col gap-4 rounded-lg border border-border bg-card p-4 shadow-sm", props.class)}>
45+ <div class={cn("flex flex-col gap-4 rounded-xl border border-border-line bg-surface-base p-4", props.class)}>
4646 <Show when={props.title}>
47- <div class="border-b border-border pb-3">
47+ <div class="border-b border-border-hairline pb-3">
4848 <div>
4949 <h3 class="text-sm font-semibold tracking-tight text-foreground">{props.title}</h3>
5050 <Show when={props.subtitle}>
@@ -75,7 +75,7 @@ export const ChartProgressRing: Component<ChartProgressRingProps> = (props) => {
7575 </div>
7676
7777 {/* Multi-Segmented Progress Gauge Bar */}
78- <div class="flex h-3.5 w-full overflow-hidden rounded-full bg-muted/60 dark:bg-muted/40 p-0.5 border border-border/40">
78+ <div class="flex h-3.5 w-full overflow-hidden rounded-full border border-border-hairline bg-surface-fill p-0.5">
7979 <For each={props.segments}>
8080 {(segment) => {
8181 const pct = () => (calculatedTotal() > 0 ? (segment.value / calculatedTotal()) * 100 : 0);
@@ -96,7 +96,7 @@ export const ChartProgressRing: Component<ChartProgressRingProps> = (props) => {
9696 <div class="grid grid-cols-2 gap-2 pt-1 sm:grid-cols-2">
9797 <For each={visibleSegments()}>
9898 {(segment) => (
99- <div class="flex items-center justify-between rounded-xl border border-border/40 bg-muted/30 px-3 py-2 text-xs">
99+ <div class="flex items-center justify-between rounded-lg border border-border-hairline bg-surface-overlay px-3 py-2 text-xs">
100100 <div class="flex items-center gap-2 truncate">
101101 <span class={cn("h-2.5 w-2.5 shrink-0 rounded-full", segment.colorClass)} />
102102 <span class="truncate font-medium text-muted-foreground">{segment.label}</span>
src/components/ui/data-table.tsxmodified+1 -1
@@ -413,7 +413,7 @@ export function DataTableFrame(props: ParentProps<{ class?: string }>) {
413413
414414 export function DataTableEmpty(props: ParentProps<{ class?: string }>) {
415415 return (
416- <div class={cn("rounded-lg border border-dashed border-border/70 bg-muted/15 px-6 py-10 text-center text-sm leading-6 text-muted-foreground", props.class)}>
416+ <div class={cn("rounded-xl border border-dashed border-border-line bg-surface-overlay px-6 py-10 text-center text-sm leading-6 text-text-subtle", props.class)}>
417417 {props.children}
418418 </div>
419419 );
src/components/ui/dialog.tsxmodified+4 -4
@@ -18,14 +18,14 @@ export function DialogContent<T extends ValidComponent = "div">(
1818 ]);
1919 return (
2020 <DialogPrimitive.Portal>
21- <DialogPrimitive.Overlay class="fixed inset-0 z-50 bg-black/80 backdrop-blur-sm transition-opacity duration-200" />
21+ <DialogPrimitive.Overlay class="fixed inset-0 z-50 bg-[rgba(13,15,23,0.55)] transition-opacity duration-200" />
2222 {/* flex center — animate-fade-up must not own transform positioning */}
2323 {/* The centring box is inset by the system bars, so a tall dialog is
2424 never clipped by the status bar or the gesture bar. */}
2525 <div class="pointer-events-none fixed inset-0 z-50 flex items-center justify-center p-3 pb-[calc(0.75rem+max(env(safe-area-inset-bottom),var(--android-nav-inset,0px)))] pt-[calc(0.75rem+env(safe-area-inset-top))] sm:p-4">
2626 <DialogPrimitive.Content
2727 class={cn(
28- "pointer-events-auto relative flex max-h-[min(100%,48rem)] w-full max-w-lg flex-col overflow-hidden border border-border/80 bg-background text-foreground shadow-2xl shadow-black/20 outline-hidden animate-fade-up sm:rounded-lg",
28+ "pointer-events-auto relative flex max-h-[min(100%,48rem)] w-full max-w-[480px] flex-col overflow-hidden border border-border-line bg-surface-base text-foreground shadow-[0_16px_40px_rgba(0,0,0,0.16)] outline-hidden animate-fade-up sm:rounded-2xl",
2929 local.class,
3030 )}
3131 // Standard dialogs dismiss outside/ESC; pass false only when losing
@@ -50,11 +50,11 @@ export function DialogContent<T extends ValidComponent = "div">(
5050 }
5151
5252 export function DialogHeader(props: ParentProps<{ class?: string }>) {
53- return <div class={cn("flex flex-col space-y-1.5 border-b border-border/80 px-5 py-4 pr-14 text-center sm:px-6 sm:text-left", props.class)}>{props.children}</div>;
53+ return <div class={cn("flex flex-col space-y-1.5 border-b border-border-hairline px-5 py-5 pr-14 text-center sm:px-7 sm:text-left", props.class)}>{props.children}</div>;
5454 }
5555
5656 export function DialogBody(props: ParentProps<{ class?: string }>) {
57- return <div class={cn("overflow-y-auto overscroll-contain px-5 py-4 sm:px-6", props.class)}>{props.children}</div>;
57+ return <div class={cn("overflow-y-auto overscroll-contain px-5 py-5 sm:px-7", props.class)}>{props.children}</div>;
5858 }
5959
6060 export function DialogTitle<T extends ValidComponent = "h2">(
src/components/ui/empty-state.tsxmodified+10 -10
@@ -26,13 +26,13 @@ export function EmptyState(props: {
2626 return (
2727 <div
2828 class={cn(
29- "flex min-h-48 flex-col items-center justify-center gap-3 rounded-lg border border-dashed border-border/70 bg-muted/15 px-6 py-8 text-center transition-all duration-300",
29+ "flex min-h-[289px] flex-col items-center justify-center gap-5 rounded-xl border border-border-hairline bg-surface-base px-10 py-14 text-center transition-all duration-300",
3030 props.class,
3131 )}
3232 >
33- <div class={cn("relative flex h-16 w-16 items-center justify-center rounded-lg border shadow-inner", KIND_TONE[kind()])}>
33+ <div class={cn("relative flex h-14 w-14 items-center justify-center rounded-lg border", KIND_TONE[kind()])}>
3434 <Show when={kind() === "notes"}>
35- <svg class="h-8 w-8" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
35+ <svg class="h-7 w-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
3636 <path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1-2.5-2.5Z" />
3737 <path d="M6 6h10" />
3838 <path d="M6 10h8" />
@@ -40,14 +40,14 @@ export function EmptyState(props: {
4040 </svg>
4141 </Show>
4242 <Show when={kind() === "exams"}>
43- <svg class="h-8 w-8" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
43+ <svg class="h-7 w-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
4444 <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />
4545 <polyline points="14 2 14 8 20 8" />
4646 <path d="m9 15 2 2 4-4" />
4747 </svg>
4848 </Show>
4949 <Show when={kind() === "events"}>
50- <svg class="h-8 w-8" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
50+ <svg class="h-7 w-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
5151 <rect width="18" height="18" x="3" y="4" rx="2" ry="2" />
5252 <line x1="16" x2="16" y1="2" y2="6" />
5353 <line x1="8" x2="8" y1="2" y2="6" />
@@ -56,23 +56,23 @@ export function EmptyState(props: {
5656 </svg>
5757 </Show>
5858 <Show when={kind() === "meals"}>
59- <svg class="h-8 w-8" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
59+ <svg class="h-7 w-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
6060 <path d="M3 2v7c0 1.1.9 2 2 2h0a2 2 0 0 0 2-2V2M5 2v20" />
6161 <path d="M15 2v20M15 8c0-3.3 1.3-6 4-6v20" />
6262 </svg>
6363 </Show>
6464 <Show when={kind() === "default" || kind() === "courses"}>
65- <svg class="h-8 w-8" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
65+ <svg class="h-7 w-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
6666 <path d="M22 10v6M2 10l10-5 10 5-10 5z" />
6767 <path d="M6 12v5c3 3 9 3 12 0v-5" />
6868 </svg>
6969 </Show>
7070 </div>
7171
72- <div class="space-y-1">
73- <p class="text-sm font-semibold text-foreground">{props.title}</p>
72+ <div class="space-y-2">
73+ <p class="text-xl font-semibold leading-8 tracking-[-0.025em] text-text-strong sm:text-2xl">{props.title}</p>
7474 <Show when={props.description}>
75- <p class="max-w-sm text-xs leading-relaxed text-muted-foreground">{props.description}</p>
75+ <p class="max-w-[420px] text-sm leading-[21px] text-text-subtle">{props.description}</p>
7676 </Show>
7777 </div>
7878 </div>
src/components/ui/icons.tsxmodified+100 -272
@@ -1,10 +1,70 @@
11 import type { JSX } from "solid-js";
22 import { cn } from "@/lib/cn";
3+import arrowSquareOutUrl from "@phosphor-icons/core/regular/arrow-square-out.svg?url";
4+import bellUrl from "@phosphor-icons/core/regular/bell.svg?url";
5+import bookOpenUrl from "@phosphor-icons/core/regular/book-open.svg?url";
6+import calendarDotsUrl from "@phosphor-icons/core/regular/calendar-dots.svg?url";
7+import caretDownUrl from "@phosphor-icons/core/regular/caret-down.svg?url";
8+import caretLeftUrl from "@phosphor-icons/core/regular/caret-left.svg?url";
9+import caretRightUrl from "@phosphor-icons/core/regular/caret-right.svg?url";
10+import caretUpDownUrl from "@phosphor-icons/core/regular/caret-up-down.svg?url";
11+import chartBarUrl from "@phosphor-icons/core/regular/chart-bar.svg?url";
12+import chartLineUpUrl from "@phosphor-icons/core/regular/chart-line-up.svg?url";
13+import chatCircleDotsUrl from "@phosphor-icons/core/regular/chat-circle-dots.svg?url";
14+import checkCircleUrl from "@phosphor-icons/core/regular/check-circle.svg?url";
15+import checkUrl from "@phosphor-icons/core/regular/check.svg?url";
16+import clockUrl from "@phosphor-icons/core/regular/clock.svg?url";
17+import clipboardTextUrl from "@phosphor-icons/core/regular/clipboard-text.svg?url";
18+import copyUrl from "@phosphor-icons/core/regular/copy.svg?url";
19+import downloadSimpleUrl from "@phosphor-icons/core/regular/download-simple.svg?url";
20+import examUrl from "@phosphor-icons/core/regular/exam.svg?url";
21+import eyeUrl from "@phosphor-icons/core/regular/eye.svg?url";
22+import fileTextUrl from "@phosphor-icons/core/regular/file-text.svg?url";
23+import funnelUrl from "@phosphor-icons/core/regular/funnel.svg?url";
24+import gearUrl from "@phosphor-icons/core/regular/gear.svg?url";
25+import graduationCapUrl from "@phosphor-icons/core/regular/graduation-cap.svg?url";
26+import houseUrl from "@phosphor-icons/core/regular/house.svg?url";
27+import listUrl from "@phosphor-icons/core/regular/list.svg?url";
28+import lockSimpleUrl from "@phosphor-icons/core/regular/lock-simple.svg?url";
29+import magnifyingGlassUrl from "@phosphor-icons/core/regular/magnifying-glass.svg?url";
30+import paperPlaneTiltUrl from "@phosphor-icons/core/regular/paper-plane-tilt.svg?url";
31+import pencilSimpleUrl from "@phosphor-icons/core/regular/pencil-simple.svg?url";
32+import plusUrl from "@phosphor-icons/core/regular/plus.svg?url";
33+import questionUrl from "@phosphor-icons/core/regular/question.svg?url";
34+import sidebarSimpleUrl from "@phosphor-icons/core/regular/sidebar-simple.svg?url";
35+import signOutUrl from "@phosphor-icons/core/regular/sign-out.svg?url";
36+import sparkleUrl from "@phosphor-icons/core/regular/sparkle.svg?url";
37+import trashUrl from "@phosphor-icons/core/regular/trash.svg?url";
38+import uploadSimpleUrl from "@phosphor-icons/core/regular/upload-simple.svg?url";
39+import usersUrl from "@phosphor-icons/core/regular/users.svg?url";
40+import warningUrl from "@phosphor-icons/core/regular/warning.svg?url";
41+import xUrl from "@phosphor-icons/core/regular/x.svg?url";
342
443 type IconProps = {
544 class?: string;
645 };
746
47+/** Exact Phosphor Regular artwork used by the Figma icon library. A mask keeps
48+ * the source SVG local while allowing the icon to inherit the current color. */
49+function PhosphorIcon(props: IconProps & { src: string }) {
50+ return (
51+ <span
52+ aria-hidden="true"
53+ class={cn("inline-block h-4 w-4 shrink-0 bg-current", props.class)}
54+ style={{
55+ "mask-image": `url("${props.src}")`,
56+ "mask-position": "center",
57+ "mask-repeat": "no-repeat",
58+ "mask-size": "contain",
59+ "-webkit-mask-image": `url("${props.src}")`,
60+ "-webkit-mask-position": "center",
61+ "-webkit-mask-repeat": "no-repeat",
62+ "-webkit-mask-size": "contain",
63+ }}
64+ />
65+ );
66+}
67+
868 /** Shared stroke system: 24 grid, 2px stroke, round caps/joins (Lucide geometry). */
969 function Svg(props: IconProps & { children: JSX.Element }) {
1070 return (
@@ -24,34 +84,15 @@ function Svg(props: IconProps & { children: JSX.Element }) {
2484 }
2585
2686 export function IconLogout(props: IconProps) {
27- return (
28- <Svg {...props}>
29- <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
30- <polyline points="16 17 21 12 16 7" />
31- <line x1="21" y1="12" x2="9" y2="12" />
32- </Svg>
33- );
87+ return <PhosphorIcon {...props} src={signOutUrl} />;
3488 }
3589
3690 export function IconTrash(props: IconProps) {
37- return (
38- <Svg {...props}>
39- <path d="M3 6h18" />
40- <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" />
41- <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" />
42- <line x1="10" y1="11" x2="10" y2="17" />
43- <line x1="14" y1="11" x2="14" y2="17" />
44- </Svg>
45- );
91+ return <PhosphorIcon {...props} src={trashUrl} />;
4692 }
4793
4894 export function IconLock(props: IconProps) {
49- return (
50- <Svg {...props}>
51- <rect x="4" y="10" width="16" height="11" rx="2" />
52- <path d="M8 10V7a4 4 0 0 1 8 0v3" />
53- </Svg>
54- );
95+ return <PhosphorIcon {...props} src={lockSimpleUrl} />;
5596 }
5697
5798 /** Delete-whole-series: a calendar with an ✕ — distinct silhouette from the
@@ -80,20 +121,11 @@ export function IconArchive(props: IconProps) {
80121 }
81122
82123 export function IconSend(props: IconProps) {
83- return (
84- <Svg {...props}>
85- <path d="m22 2-7 20-4-9-9-4Z" />
86- <path d="M22 2 11 13" />
87- </Svg>
88- );
124+ return <PhosphorIcon {...props} src={paperPlaneTiltUrl} />;
89125 }
90126
91127 export function IconMessage(props: IconProps) {
92- return (
93- <Svg {...props}>
94- <path d="M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z" />
95- </Svg>
96- );
128+ return <PhosphorIcon {...props} src={chatCircleDotsUrl} />;
97129 }
98130
99131 export function IconBotSquare(props: IconProps) {
@@ -108,39 +140,19 @@ export function IconBotSquare(props: IconProps) {
108140 }
109141
110142 export function IconCheck(props: IconProps) {
111- return (
112- <Svg {...props}>
113- <path d="M20 6 9 17l-5-5" />
114- </Svg>
115- );
143+ return <PhosphorIcon {...props} src={checkUrl} />;
116144 }
117145
118146 export function IconCopy(props: IconProps) {
119- return (
120- <Svg {...props}>
121- <rect x="9" y="9" width="13" height="13" rx="2" />
122- <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />
123- </Svg>
124- );
147+ return <PhosphorIcon {...props} src={copyUrl} />;
125148 }
126149
127150 export function IconX(props: IconProps) {
128- return (
129- <Svg {...props}>
130- <path d="M18 6 6 18" />
131- <path d="m6 6 12 12" />
132- </Svg>
133- );
151+ return <PhosphorIcon {...props} src={xUrl} />;
134152 }
135153
136154 export function IconAlert(props: IconProps) {
137- return (
138- <Svg {...props}>
139- <path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" />
140- <path d="M12 9v4" />
141- <path d="M12 17h.01" />
142- </Svg>
143- );
155+ return <PhosphorIcon {...props} src={warningUrl} />;
144156 }
145157
146158 export function IconSave(props: IconProps) {
@@ -154,12 +166,7 @@ export function IconSave(props: IconProps) {
154166 }
155167
156168 export function IconEdit(props: IconProps) {
157- return (
158- <Svg {...props}>
159- <path d="M12 20h9" />
160- <path d="M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z" />
161- </Svg>
162- );
169+ return <PhosphorIcon {...props} src={pencilSimpleUrl} />;
163170 }
164171
165172 export function IconEraser(props: IconProps) {
@@ -227,22 +234,11 @@ export function IconUndo(props: IconProps) {
227234 }
228235
229236 export function IconPlus(props: IconProps) {
230- return (
231- <Svg {...props}>
232- <path d="M5 12h14" />
233- <path d="M12 5v14" />
234- </Svg>
235- );
237+ return <PhosphorIcon {...props} src={plusUrl} />;
236238 }
237239
238240 export function IconDownload(props: IconProps) {
239- return (
240- <Svg {...props}>
241- <path d="M12 3v12" />
242- <path d="m7 10 5 5 5-5" />
243- <path d="M5 21h14" />
244- </Svg>
245- );
241+ return <PhosphorIcon {...props} src={downloadSimpleUrl} />;
246242 }
247243
248244 export function IconSun(props: IconProps) {
@@ -291,13 +287,7 @@ export function IconZoomOut(props: IconProps) {
291287 }
292288
293289 export function IconHelpCircle(props: IconProps) {
294- return (
295- <Svg {...props}>
296- <circle cx="12" cy="12" r="10" />
297- <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" />
298- <path d="M12 17h.01" />
299- </Svg>
300- );
290+ return <PhosphorIcon {...props} src={questionUrl} />;
301291 }
302292
303293 export function IconMessagePlus(props: IconProps) {
@@ -331,27 +321,15 @@ export function IconGlobe(props: IconProps) {
331321 }
332322
333323 export function IconChevronLeft(props: IconProps) {
334- return (
335- <Svg {...props}>
336- <path d="m15 18-6-6 6-6" />
337- </Svg>
338- );
324+ return <PhosphorIcon {...props} src={caretLeftUrl} />;
339325 }
340326
341327 export function IconChevronRight(props: IconProps) {
342- return (
343- <Svg {...props}>
344- <path d="m9 18 6-6-6-6" />
345- </Svg>
346- );
328+ return <PhosphorIcon {...props} src={caretRightUrl} />;
347329 }
348330
349331 export function IconChevronDown(props: IconProps) {
350- return (
351- <Svg {...props}>
352- <path d="m6 9 6 6 6-6" />
353- </Svg>
354- );
332+ return <PhosphorIcon {...props} src={caretDownUrl} />;
355333 }
356334
357335 export function IconArrowUp(props: IconProps) {
@@ -373,21 +351,11 @@ export function IconArrowDown(props: IconProps) {
373351 }
374352
375353 export function IconChevronsUpDown(props: IconProps) {
376- return (
377- <Svg {...props}>
378- <path d="m7 15 5 5 5-5" />
379- <path d="m7 9 5-5 5 5" />
380- </Svg>
381- );
354+ return <PhosphorIcon {...props} src={caretUpDownUrl} />;
382355 }
383356
384357 export function IconHome(props: IconProps) {
385- return (
386- <Svg {...props}>
387- <path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" />
388- <path d="M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" />
389- </Svg>
390- );
358+ return <PhosphorIcon {...props} src={houseUrl} />;
391359 }
392360
393361 export function IconNote(props: IconProps) {
@@ -432,26 +400,11 @@ export function IconFileAudio(props: IconProps) {
432400 }
433401
434402 export function IconFileText(props: IconProps) {
435- return (
436- <Svg {...props}>
437- <path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
438- <path d="M14 2v4a2 2 0 0 0 2 2h4" />
439- <path d="M8 13h8" />
440- <path d="M8 17h5" />
441- </Svg>
442- );
403+ return <PhosphorIcon {...props} src={fileTextUrl} />;
443404 }
444405
445406 export function IconHomework(props: IconProps) {
446- return (
447- <Svg {...props}>
448- <path d="M15 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6Z" />
449- <path d="M14 2v4a2 2 0 0 0 2 2h3" />
450- <path d="M8 13h5" />
451- <path d="M8 17h3" />
452- <path d="m15 16 4-4 2 2-4 4h-2z" />
453- </Svg>
454- );
407+ return <PhosphorIcon {...props} src={clipboardTextUrl} />;
455408 }
456409
457410 export function IconFileSpreadsheet(props: IconProps) {
@@ -467,53 +420,19 @@ export function IconFileSpreadsheet(props: IconProps) {
467420 }
468421
469422 export function IconCalendar(props: IconProps) {
470- return (
471- <Svg {...props}>
472- <path d="M8 2v4" />
473- <path d="M16 2v4" />
474- <rect width="18" height="18" x="3" y="4" rx="2" />
475- <path d="M3 10h18" />
476- </Svg>
477- );
423+ return <PhosphorIcon {...props} src={calendarDotsUrl} />;
478424 }
479425
480426 export function IconCalendarDays(props: IconProps) {
481- return (
482- <Svg {...props}>
483- <path d="M8 2v4" />
484- <path d="M16 2v4" />
485- <rect width="18" height="18" x="3" y="4" rx="2" />
486- <path d="M3 10h18" />
487- <path d="M8 14h.01" />
488- <path d="M12 14h.01" />
489- <path d="M16 14h.01" />
490- <path d="M8 18h.01" />
491- <path d="M12 18h.01" />
492- <path d="M16 18h.01" />
493- </Svg>
494- );
427+ return <PhosphorIcon {...props} src={calendarDotsUrl} />;
495428 }
496429
497430 export function IconClock(props: IconProps) {
498- return (
499- <Svg {...props}>
500- <circle cx="12" cy="12" r="10" />
501- <path d="M12 6v6l4 2" />
502- </Svg>
503- );
431+ return <PhosphorIcon {...props} src={clockUrl} />;
504432 }
505433
506434 export function IconExam(props: IconProps) {
507- return (
508- <Svg {...props}>
509- <rect width="8" height="4" x="8" y="2" rx="1" ry="1" />
510- <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" />
511- <path d="M12 11h4" />
512- <path d="M12 16h4" />
513- <path d="M8 11h.01" />
514- <path d="M8 16h.01" />
515- </Svg>
516- );
435+ return <PhosphorIcon {...props} src={examUrl} />;
517436 }
518437
519438 export function IconGuide(props: IconProps) {
@@ -527,24 +446,11 @@ export function IconGuide(props: IconProps) {
527446 }
528447
529448 export function IconUsers(props: IconProps) {
530- return (
531- <Svg {...props}>
532- <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />
533- <circle cx="9" cy="7" r="4" />
534- <path d="M22 21v-2a4 4 0 0 0-3-3.87" />
535- <path d="M16 3.13a4 4 0 0 1 0 7.75" />
536- </Svg>
537- );
449+ return <PhosphorIcon {...props} src={usersUrl} />;
538450 }
539451
540452 export function IconMenu(props: IconProps) {
541- return (
542- <Svg {...props}>
543- <path d="M4 5h16" />
544- <path d="M4 12h16" />
545- <path d="M4 19h16" />
546- </Svg>
547- );
453+ return <PhosphorIcon {...props} src={listUrl} />;
548454 }
549455
550456 export function IconDotsVertical(props: IconProps) {
@@ -558,29 +464,15 @@ export function IconDotsVertical(props: IconProps) {
558464 }
559465
560466 export function IconPanelLeft(props: IconProps) {
561- return (
562- <Svg {...props}>
563- <rect width="18" height="18" x="3" y="3" rx="2" />
564- <path d="M9 3v18" />
565- </Svg>
566- );
467+ return <PhosphorIcon {...props} src={sidebarSimpleUrl} />;
567468 }
568469
569470 export function IconBook(props: IconProps) {
570- return (
571- <Svg {...props}>
572- <path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20" />
573- </Svg>
574- );
471+ return <PhosphorIcon {...props} src={bookOpenUrl} />;
575472 }
576473
577474 export function IconEye(props: IconProps) {
578- return (
579- <Svg {...props}>
580- <path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" />
581- <circle cx="12" cy="12" r="3" />
582- </Svg>
583- );
475+ return <PhosphorIcon {...props} src={eyeUrl} />;
584476 }
585477
586478 export function IconEyeOff(props: IconProps) {
@@ -595,55 +487,23 @@ export function IconEyeOff(props: IconProps) {
595487 }
596488
597489 export function IconChart(props: IconProps) {
598- return (
599- <Svg {...props}>
600- <path d="M3 3v16a2 2 0 0 0 2 2h16" />
601- <path d="M7 16v-5" />
602- <path d="M12 16v-9" />
603- <path d="M17 16V8" />
604- </Svg>
605- );
490+ return <PhosphorIcon {...props} src={chartBarUrl} />;
606491 }
607492
608493 export function IconSchool(props: IconProps) {
609- return (
610- <Svg {...props}>
611- <path d="M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z" />
612- <path d="M22 10v6" />
613- <path d="M6 12.5V16a6 3 0 0 0 12 0v-3.5" />
614- </Svg>
615- );
494+ return <PhosphorIcon {...props} src={graduationCapUrl} />;
616495 }
617496
618497 export function IconClipboardCheck(props: IconProps) {
619- return (
620- <Svg {...props}>
621- <rect width="8" height="4" x="8" y="2" rx="1" ry="1" />
622- <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" />
623- <path d="m9 14 2 2 4-4" />
624- </Svg>
625- );
498+ return <PhosphorIcon {...props} src={checkCircleUrl} />;
626499 }
627500
628501 export function IconReportAnalytics(props: IconProps) {
629- return (
630- <Svg {...props}>
631- <path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
632- <path d="M14 2v4a2 2 0 0 0 2 2h4" />
633- <path d="M8 18v-1" />
634- <path d="M12 18v-6" />
635- <path d="M16 18v-3" />
636- </Svg>
637- );
502+ return <PhosphorIcon {...props} src={chartLineUpUrl} />;
638503 }
639504
640505 export function IconSettings(props: IconProps) {
641- return (
642- <Svg {...props}>
643- <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />
644- <circle cx="12" cy="12" r="3" />
645- </Svg>
646- );
506+ return <PhosphorIcon {...props} src={gearUrl} />;
647507 }
648508
649509 export function IconUserCog(props: IconProps) {
@@ -686,40 +546,19 @@ export function IconUtensils(props: IconProps) {
686546 }
687547
688548 export function IconSearch(props: IconProps) {
689- return (
690- <Svg {...props}>
691- <circle cx="11" cy="11" r="8" />
692- <path d="m21 21-4.3-4.3" />
693- </Svg>
694- );
549+ return <PhosphorIcon {...props} src={magnifyingGlassUrl} />;
695550 }
696551
697552 export function IconSparkles(props: IconProps) {
698- return (
699- <Svg {...props}>
700- <path d="M9.9 4.24 12 2l2.1 2.24L17 5l-2.9.76L12 8l-2.1-2.24L7 5z" />
701- <path d="M18 12.5 19.5 11l1.5 1.5 2 .5-2 .5-1.5 1.5L18 13.5l-2-.5z" />
702- <path d="M4 15.5 6.5 13 9 15.5l3 .75-3 .75-2.5 2.5L4 17l-3-.75z" />
703- </Svg>
704- );
553+ return <PhosphorIcon {...props} src={sparkleUrl} />;
705554 }
706555
707556 export function IconUploadCloud(props: IconProps) {
708- return (
709- <Svg {...props}>
710- <path d="M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242" />
711- <path d="M12 12v9" />
712- <path d="m16 16-4-4-4 4" />
713- </Svg>
714- );
557+ return <PhosphorIcon {...props} src={uploadSimpleUrl} />;
715558 }
716559
717560 export function IconFilter(props: IconProps) {
718- return (
719- <Svg {...props}>
720- <polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" />
721- </Svg>
722- );
561+ return <PhosphorIcon {...props} src={funnelUrl} />;
723562 }
724563
725564 export function IconRotateCcw(props: IconProps) {
@@ -751,20 +590,9 @@ export function IconRefresh(props: IconProps) {
751590 }
752591
753592 export function IconExternalLink(props: IconProps) {
754- return (
755- <Svg {...props}>
756- <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />
757- <polyline points="15 3 21 3 21 9" />
758- <line x1="10" y1="14" x2="21" y2="3" />
759- </Svg>
760- );
593+ return <PhosphorIcon {...props} src={arrowSquareOutUrl} />;
761594 }
762595
763596 export function IconBell(props: IconProps) {
764- return (
765- <Svg {...props}>
766- <path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" />
767- <path d="M10.3 21a1.94 1.94 0 0 0 3.4 0" />
768- </Svg>
769- );
597+ return <PhosphorIcon {...props} src={bellUrl} />;
770598 }
src/components/ui/input.tsxmodified+1 -1
@@ -9,7 +9,7 @@ export function Input(props: InputProps) {
99 return (
1010 <input
1111 class={cn(
12- "flex h-9 w-full rounded-md border border-input bg-background/90 px-3 py-1 text-base shadow-sm transition-all file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/80 hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
12+ "flex h-9 w-full rounded-md border border-input bg-surface-base px-3 py-1 text-base shadow-sm transition-all file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-placeholder hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1 focus-visible:ring-offset-background aria-invalid:border-destructive aria-invalid:ring-destructive/25 disabled:cursor-not-allowed disabled:bg-surface-tint disabled:text-muted-foreground disabled:opacity-70 md:text-sm",
1313 local.class,
1414 )}
1515 {...rest}
src/components/ui/side-panel.tsxmodified+3 -3
@@ -41,10 +41,10 @@ export function SidePanel(
4141 return (
4242 <DialogPrimitive open={props.open} onOpenChange={props.onOpenChange} modal={false} preventScroll>
4343 <DialogPrimitive.Portal>
44- <DialogPrimitive.Overlay class="fixed inset-0 z-50 bg-black/80 transition-opacity duration-200 data-closed:opacity-0 data-expanded:opacity-100" />
44+ <DialogPrimitive.Overlay class="fixed inset-0 z-50 bg-[rgba(13,15,23,0.55)] transition-opacity duration-200 data-closed:opacity-0 data-expanded:opacity-100" />
4545 <DialogPrimitive.Content
4646 class={cn(
47- "fixed inset-y-0 right-0 z-50 flex h-full w-full flex-col border-l border-border bg-background text-foreground shadow-2xl shadow-black/20 outline-hidden",
47+ "fixed inset-y-0 right-0 z-50 flex h-full w-full flex-col border-l border-border-line bg-surface-base text-foreground shadow-[0_16px_40px_rgba(0,0,0,0.16)] outline-hidden",
4848 // The panel spans the whole display, so it has to keep its own
4949 // header out from under the status bar and its footer off the
5050 // gesture bar. Both insets are 0 in a desktop browser.
@@ -54,7 +54,7 @@ export function SidePanel(
5454 props.class,
5555 )}
5656 >
57- <div class="flex shrink-0 items-start justify-between gap-4 border-b border-border px-5 py-4">
57+ <div class="flex shrink-0 items-start justify-between gap-4 border-b border-border-hairline px-5 py-4">
5858 <div class="min-w-0 flex-1 space-y-1">
5959 <DialogPrimitive.Title class="truncate text-base font-semibold leading-6 tracking-tight">
6060 {props.title}
src/components/ui/table.tsxmodified+3 -3
@@ -16,7 +16,7 @@ export function Table(props: ParentProps<ComponentProps<"table">>) {
1616 export function TableHeader(props: ParentProps<ComponentProps<"thead">>) {
1717 const [local, rest] = splitProps(props, ["class", "children"]);
1818 return (
19- <thead class={cn("bg-muted/55 [&_tr]:border-b", local.class)} {...rest}>
19+ <thead class={cn("bg-surface-overlay [&_tr]:border-b", local.class)} {...rest}>
2020 {local.children}
2121 </thead>
2222 );
@@ -35,7 +35,7 @@ export function TableRow(props: ParentProps<ComponentProps<"tr">>) {
3535 const [local, rest] = splitProps(props, ["class", "children"]);
3636 return (
3737 <tr
38- class={cn("border-b border-border/70 transition-colors hover:bg-muted/65 data-[state=selected]:bg-muted", local.class)}
38+ class={cn("border-b border-border-hairline transition-colors hover:bg-surface-overlay data-[state=selected]:bg-surface-tint", local.class)}
3939 {...rest}
4040 >
4141 {local.children}
@@ -48,7 +48,7 @@ export function TableHead(props: ParentProps<ComponentProps<"th">>) {
4848 return (
4949 <th
5050 class={cn(
51- "sticky top-0 z-20 h-11 whitespace-nowrap px-3 text-left align-middle text-xs font-medium tracking-normal text-muted-foreground first:pl-4 last:pr-4 has-[[role=checkbox]]:pr-0",
51+ "sticky top-0 z-20 h-11 whitespace-nowrap px-3 text-left align-middle text-xs font-medium tracking-normal text-text-subtle first:pl-4 last:pr-4 has-[[role=checkbox]]:pr-0",
5252 local.class,
5353 )}
5454 {...rest}
src/components/ui/tabs.tsxmodified+1 -1
@@ -30,7 +30,7 @@ export function TabsTrigger<T extends ValidComponent = "button">(
3030 return (
3131 <TabsPrimitive.Trigger
3232 class={cn(
33- "group inline-flex h-9 shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-3 text-sm font-medium text-muted-foreground transition-[background-color,border-color,box-shadow,color] duration-200 hover:bg-muted/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-selected:border-border data-selected:bg-secondary data-selected:text-secondary-foreground data-selected:shadow-xs",
33+ "group inline-flex h-8 shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-3 text-sm font-medium text-muted-foreground transition-[background-color,border-color,box-shadow,color] duration-200 hover:bg-muted/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-selected:border-border data-selected:bg-surface-base data-selected:text-foreground data-selected:shadow-xs",
3434 local.class,
3535 )}
3636 {...rest}
src/components/ui/toast.tsxmodified+2 -2
@@ -24,10 +24,10 @@ function dismissToast(id: number) {
2424 export function Toaster() {
2525 return (
2626 <Portal>
27- <div class="pointer-events-none fixed inset-x-3 top-4 z-80 flex flex-col items-end gap-2 sm:inset-x-auto sm:right-5 sm:w-96">
27+ <div class="pointer-events-none fixed inset-x-3 top-4 z-80 flex flex-col items-end gap-2 sm:inset-x-auto sm:right-5 sm:w-[380px]">
2828 <For each={toasts()}>
2929 {(toast) => (
30- <div class="pointer-events-auto flex w-full items-center gap-3 rounded-lg border border-border bg-background px-3.5 py-2.5 text-foreground shadow-lg">
30+ <div class="pointer-events-auto flex min-h-[65px] w-full items-center gap-3 rounded-lg border border-border-line bg-surface-base px-4 py-3 text-foreground shadow-xl shadow-black/10">
3131 <span class="flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-emerald-500/10 text-emerald-700 dark:text-emerald-300">
3232 <IconCheck class="h-3.5 w-3.5" />
3333 </span>
src/components/users/user-table.tsxmodified+7 -4
@@ -42,7 +42,7 @@ function UserRoleActions(props: {
4242 ))}
4343 </Select>
4444 <Show when={!isSelf() && dirty()}>
45- <Button type="button" size="sm" class="mt-2 h-10 rounded-md px-3" onClick={(e) => { e.stopPropagation(); setConfirmOpen(true); }}>
45+ <Button type="button" size="sm" class="mt-2" onClick={(e) => { e.stopPropagation(); setConfirmOpen(true); }}>
4646 <IconCheck />
4747 {t("common.update")}
4848 </Button>
@@ -116,10 +116,13 @@ export function UserTable(props: {
116116 {
117117 id: "actions",
118118 header: t("common.actions"),
119- size: 112,
120- minSize: 112,
119+ size: 110,
120+ minSize: 110,
121121 enableHiding: false,
122- meta: { headerClass: "w-28 min-w-28 text-center whitespace-nowrap", cellClass: "w-28 text-center" },
122+ meta: {
123+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] text-center whitespace-nowrap",
124+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] text-center whitespace-nowrap",
125+ },
123126 cell: (cell) => (
124127 <TableRowActions
125128 label={t("common.actions")}
src/components/whiteboard/whiteboard-canvas.tsxmodified+104 -72
@@ -16,7 +16,7 @@ const WIDTHS = [2, 6, 14];
1616 const ZOOM_MIN = 0.25;
1717 const ZOOM_MAX = 4;
1818 const ZOOM_STEP = 1.25;
19-const OVERLAY_CARD = "absolute z-10 flex gap-1.5 rounded-lg border bg-card/90 p-1.5 shadow-xs backdrop-blur-xs";
19+const OVERLAY_CARD = "absolute z-10 gap-1.5 rounded-lg border bg-card/90 p-1.5 shadow-xs backdrop-blur-xs";
2020
2121 // Imperative handle the room uses to push server-confirmed marks onto the
2222 // canvas without re-rendering the whole component per stroke.
@@ -229,6 +229,88 @@ export function WhiteboardCanvas(props: {
229229 : "border-border bg-background text-muted-foreground hover:bg-accent hover:text-foreground",
230230 );
231231
232+ // Shared button groups rendered twice: once inside the mobile wrapping bar,
233+ // once inside the three desktop corner islands. Each instance mounts its own
234+ // reactive scope over the same signals above, so both stay in sync.
235+ const ToolButtons = () => (
236+ <>
237+ <button
238+ type="button"
239+ class={toolClass(activeTool() === "pen")}
240+ title={t("draw.pen")}
241+ onClick={() => {
242+ setErasing(false);
243+ setHand(false);
244+ }}
245+ >
246+ <IconEdit class="h-5 w-5" />
247+ <span class="sr-only">{t("draw.pen")}</span>
248+ </button>
249+ <button
250+ type="button"
251+ class={toolClass(activeTool() === "erase")}
252+ title={t("draw.eraser")}
253+ onClick={() => {
254+ setErasing(true);
255+ setHand(false);
256+ }}
257+ >
258+ <IconEraser class="h-5 w-5" />
259+ <span class="sr-only">{t("draw.eraser")}</span>
260+ </button>
261+ <button
262+ type="button"
263+ class={toolClass(activeTool() === "pan")}
264+ title={t("draw.pan")}
265+ onClick={() => setHand(true)}
266+ >
267+ <IconMove class="h-5 w-5" />
268+ <span class="sr-only">{t("draw.pan")}</span>
269+ </button>
270+ </>
271+ );
272+
273+ const ColorSwatches = () => (
274+ <For each={COLORS}>
275+ {(swatch) => (
276+ <button
277+ type="button"
278+ title={t("draw.color")}
279+ class={cn(
280+ "h-9 w-9 sm:h-11 sm:w-11 rounded-lg border-2 transition-transform",
281+ color() === swatch && activeTool() === "pen"
282+ ? "border-foreground scale-105"
283+ : "border-border/60 hover:scale-105",
284+ )}
285+ style={{ "background-color": swatch }}
286+ onClick={() => {
287+ setColor(swatch);
288+ setErasing(false);
289+ setHand(false);
290+ }}
291+ >
292+ <span class="sr-only">{swatch}</span>
293+ </button>
294+ )}
295+ </For>
296+ );
297+
298+ const WidthButtons = () => (
299+ <For each={WIDTHS}>
300+ {(size) => (
301+ <button
302+ type="button"
303+ title={t("draw.width")}
304+ class={toolClass(width() === size)}
305+ onClick={() => setWidth(size)}
306+ >
307+ <span class="rounded-full bg-current" style={{ width: `${size + 2}px`, height: `${size + 2}px` }} />
308+ <span class="sr-only">{size}</span>
309+ </button>
310+ )}
311+ </For>
312+ );
313+
232314 const paperStyle = () => {
233315 const cell = PAPER_CELL * zoom();
234316 const p = pan();
@@ -269,88 +351,38 @@ export function WhiteboardCanvas(props: {
269351 </p>
270352 </Show>
271353
354+ {/* Mobile: the three corner islands below overlap each other under ~640px
355+ (they need ~520px combined), so under sm they collapse into one
356+ wrapping bar instead; desktop keeps the original three corners. */}
357+ <div class="absolute inset-x-2 top-2 z-10 flex flex-wrap items-center justify-center gap-1.5 rounded-lg border bg-card/90 p-1.5 shadow-xs backdrop-blur-xs sm:hidden">
358+ <div class="flex gap-1.5">
359+ <ToolButtons />
360+ </div>
361+ <div class="flex flex-wrap items-center justify-center gap-1.5" role="group" aria-label={t("draw.color")}>
362+ <ColorSwatches />
363+ </div>
364+ <div class="flex gap-1.5" role="group" aria-label={t("draw.width")}>
365+ <WidthButtons />
366+ </div>
367+ </div>
368+
272369 {/* Top-left island — tools */}
273- <div class={cn(OVERLAY_CARD, "left-2 top-2")}>
274- <button
275- type="button"
276- class={toolClass(activeTool() === "pen")}
277- title={t("draw.pen")}
278- onClick={() => {
279- setErasing(false);
280- setHand(false);
281- }}
282- >
283- <IconEdit class="h-5 w-5" />
284- <span class="sr-only">{t("draw.pen")}</span>
285- </button>
286- <button
287- type="button"
288- class={toolClass(activeTool() === "erase")}
289- title={t("draw.eraser")}
290- onClick={() => {
291- setErasing(true);
292- setHand(false);
293- }}
294- >
295- <IconEraser class="h-5 w-5" />
296- <span class="sr-only">{t("draw.eraser")}</span>
297- </button>
298- <button
299- type="button"
300- class={toolClass(activeTool() === "pan")}
301- title={t("draw.pan")}
302- onClick={() => setHand(true)}
303- >
304- <IconMove class="h-5 w-5" />
305- <span class="sr-only">{t("draw.pan")}</span>
306- </button>
370+ <div class={cn(OVERLAY_CARD, "left-2 top-2 hidden sm:flex")}>
371+ <ToolButtons />
307372 </div>
308373
309374 {/* Top-middle island — colours */}
310375 <div
311- class={cn(OVERLAY_CARD, "left-1/2 top-2 -translate-x-1/2 flex-wrap items-center")}
376+ class={cn(OVERLAY_CARD, "left-1/2 top-2 hidden -translate-x-1/2 flex-wrap items-center sm:flex")}
312377 role="group"
313378 aria-label={t("draw.color")}
314379 >
315- <For each={COLORS}>
316- {(swatch) => (
317- <button
318- type="button"
319- title={t("draw.color")}
320- class={cn(
321- "h-9 w-9 sm:h-11 sm:w-11 rounded-lg border-2 transition-transform",
322- color() === swatch && activeTool() === "pen"
323- ? "border-foreground scale-105"
324- : "border-border/60 hover:scale-105",
325- )}
326- style={{ "background-color": swatch }}
327- onClick={() => {
328- setColor(swatch);
329- setErasing(false);
330- setHand(false);
331- }}
332- >
333- <span class="sr-only">{swatch}</span>
334- </button>
335- )}
336- </For>
380+ <ColorSwatches />
337381 </div>
338382
339383 {/* Top-right island — width */}
340- <div class={cn(OVERLAY_CARD, "right-2 top-2")} role="group" aria-label={t("draw.width")}>
341- <For each={WIDTHS}>
342- {(size) => (
343- <button
344- type="button"
345- title={t("draw.width")}
346- class={toolClass(width() === size)}
347- onClick={() => setWidth(size)}
348- >
349- <span class="rounded-full bg-current" style={{ width: `${size + 2}px`, height: `${size + 2}px` }} />
350- <span class="sr-only">{size}</span>
351- </button>
352- )}
353- </For>
384+ <div class={cn(OVERLAY_CARD, "right-2 top-2 hidden sm:flex")} role="group" aria-label={t("draw.width")}>
385+ <WidthButtons />
354386 </div>
355387
356388 {/* Bottom-right zoom */}
src/i18n/messages.tsmodified+10 -4
@@ -357,6 +357,8 @@ export type MessageKey =
357357 | "auth.login"
358358 | "auth.register"
359359 | "auth.username"
360+ | "auth.school"
361+ | "auth.schoolHint"
360362 | "auth.password"
361363 | "auth.noAccount"
362364 | "auth.hasAccount"
@@ -1906,13 +1908,15 @@ const en: Dict = {
19061908 "auth.login": "Log in",
19071909 "auth.register": "Create account",
19081910 "auth.username": "Username",
1911+ "auth.school": "School",
1912+ "auth.schoolHint": "2–32 characters",
19091913 "auth.password": "Password",
19101914 "auth.noAccount": "New here?",
19111915 "auth.hasAccount": "Already registered?",
19121916 "auth.confirmPassword": "Confirm password",
19131917 "auth.passwordMismatch": "Passwords do not match",
1914- "auth.loginTitle": "Welcome back",
1915- "auth.loginSubtitle": "Sign in to continue to your workspace.",
1918+ "auth.loginTitle": "Sign in to your account",
1919+ "auth.loginSubtitle": "Sign in to continue with your school workspace.",
19161920 "auth.registerTitle": "Join Hezarfen",
19171921 "auth.registerSubtitle": "New accounts start as student. Teachers and admins are assigned later.",
19181922 "auth.usernameHint": "3–32 characters",
@@ -3461,13 +3465,15 @@ const tr: Dict = {
34613465 "auth.login": "Giriş yap",
34623466 "auth.register": "Hesap oluştur",
34633467 "auth.username": "Kullanıcı adı",
3468+ "auth.school": "Okul",
3469+ "auth.schoolHint": "2–32 karakter",
34643470 "auth.password": "Şifre",
34653471 "auth.noAccount": "Yeni misin?",
34663472 "auth.hasAccount": "Zaten kayıtlı mısın?",
34673473 "auth.confirmPassword": "Şifreyi onayla",
34683474 "auth.passwordMismatch": "Şifreler eşleşmiyor",
3469- "auth.loginTitle": "Tekrar hoş geldin",
3470- "auth.loginSubtitle": "Çalışma alanına devam etmek için giriş yap.",
3475+ "auth.loginTitle": "Hesabına giriş yap",
3476+ "auth.loginSubtitle": "Okul çalışma alanına devam etmek için giriş yap.",
34713477 "auth.registerTitle": "Hezarfen’e katıl",
34723478 "auth.registerSubtitle": "Yeni hesaplar öğrenci olarak başlar. Öğretmen ve admin rolleri sonradan verilir.",
34733479 "auth.usernameHint": "3–32 karakter",
src/index.cssmodified+79 -37
@@ -54,6 +54,24 @@
5454 --color-sidebar: hsl(var(--sidebar));
5555 --color-sidebar-foreground: hsl(var(--sidebar-foreground));
5656
57+ /* Hezarfen Figma semantic aliases. Keep page code semantic while matching
58+ the shared design vocabulary across light and dark modes. */
59+ --color-brand: hsl(var(--brand));
60+ --color-brand-accent: hsl(var(--brand-accent));
61+ --color-brand-hover: hsl(var(--brand-hover));
62+ --color-brand-ink: hsl(var(--brand-ink));
63+ --color-brand-wash: hsl(var(--brand-wash));
64+ --color-surface-base: hsl(var(--surface-base));
65+ --color-surface-overlay: hsl(var(--surface-overlay));
66+ --color-surface-tint: hsl(var(--surface-tint));
67+ --color-surface-fill: hsl(var(--surface-fill));
68+ --color-text-strong: hsl(var(--text-strong));
69+ --color-text-default: hsl(var(--text-default));
70+ --color-text-subtle: hsl(var(--text-subtle));
71+ --color-text-placeholder: hsl(var(--text-placeholder));
72+ --color-border-line: hsl(var(--border-line));
73+ --color-border-hairline: hsl(var(--border-hairline));
74+
5775 /* bdash radius scale: base 0.5rem, sm=r-4px, md=r-2px, lg=r, xl=r+4px */
5876 --radius-3xl: calc(var(--radius) + 12px);
5977 --radius-2xl: calc(var(--radius) + 8px);
@@ -125,25 +143,24 @@
125143 @apply border border-border/70 bg-transparent text-muted-foreground transition-colors hover:border-border hover:bg-muted/60 hover:text-foreground;
126144 }
127145
128-/* AI action button: matches the app logo's orange instead of the theme's
129- primary color, so it reads as a distinct brand accent in the top bar. */
146+/* AI action button uses the landing-page brand blue. */
130147 @utility topbar-ai-control {
131- @apply border border-orange-500/20 bg-orange-500/10 text-orange-500 transition-colors hover:bg-orange-500/16 hover:text-orange-500;
148+ @apply border border-brand/20 bg-brand/10 text-brand transition-colors hover:bg-brand/16 hover:text-brand;
132149 }
133150
134151 @utility data-shell {
135- @apply rounded-lg border border-border bg-card shadow-sm;
152+ @apply rounded-xl border border-border-line bg-surface-base;
136153 }
137154
138155 @utility data-table-wrap {
139- @apply isolate max-h-[65vh] overflow-auto rounded-lg border border-border bg-card;
156+ @apply isolate max-h-[65vh] overflow-auto rounded-xl border border-border-line bg-surface-base;
140157 }
141158
142159 @utility data-table {
143160 @apply w-full caption-bottom text-sm;
144161
145162 & thead {
146- @apply sticky top-0 z-20 border-b border-border/80 text-muted-foreground;
163+ @apply sticky top-0 z-20 border-b border-border-hairline text-text-subtle;
147164 background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card)));
148165 }
149166
@@ -152,7 +169,7 @@
152169 * text-right/center utility on TableHead and force every header left. The
153170 * TableHead base class provides the left default; alignment stays utility-driven.
154171 * Title Case (no uppercase transform), light weight, muted. */
155- @apply h-11 overflow-hidden text-ellipsis whitespace-nowrap px-3 text-xs font-medium tracking-normal text-muted-foreground first:pl-4 last:pr-4;
172+ @apply h-11 overflow-hidden text-ellipsis whitespace-nowrap px-3 text-xs font-medium tracking-normal text-text-subtle first:pl-4 last:pr-4;
156173 background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card)));
157174 }
158175
@@ -162,7 +179,7 @@
162179 }
163180
164181 & tbody tr {
165- @apply border-b border-border/60 transition-colors data-[state=selected]:bg-muted;
182+ @apply border-b border-border-hairline transition-colors data-[state=selected]:bg-muted;
166183 background-color: hsl(var(--card));
167184 }
168185
@@ -341,28 +358,43 @@
341358 color-scheme: light;
342359
343360 /* --accent-light / --accent-light-fg are set inline by preferences-context
344- when the user picks an accent color; the fallback here is the neutral
345- default for everyone else. */
346- --ui-accent: var(--accent-light, 0 0% 13%);
347- --background: 0 0% 98%;
348- --foreground: 0 0% 8%;
361+ when the user picks an accent color. Figma brand blue is only the
362+ default; a saved user palette continues to win. */
363+ --brand: 191.94 100% 42.35%;
364+ --brand-accent: 191.94 100% 42.35%;
365+ --brand-hover: 192.06 100% 37.06%;
366+ --brand-ink: 192.46 94.2% 27.06%;
367+ --brand-wash: 193.33 75% 95.29%;
368+ --surface-base: 0 0% 100%;
369+ --surface-overlay: 0 0% 97%;
370+ --surface-tint: 0 0% 96%;
371+ --surface-fill: 0 0% 90%;
372+ --text-strong: 0 0% 4%;
373+ --text-default: 240 6% 10%;
374+ --text-subtle: 0 0% 45%;
375+ --text-placeholder: 0 0% 63%;
376+ --border-line: 0 0% 4% / 0.1;
377+ --border-hairline: 0 0% 91%;
378+ --ui-accent: var(--accent-light, var(--brand));
379+ --background: var(--surface-overlay);
380+ --foreground: var(--text-default);
349381 --card: 0 0% 100%;
350382 --card-foreground: 0 0% 8%;
351383 --popover: 0 0% 100%;
352384 --popover-foreground: 0 0% 8%;
353385 --primary: var(--ui-accent);
354386 --primary-foreground: var(--accent-light-fg, 0 0% 98%);
355- --secondary: 0 0% 94%;
387+ --secondary: var(--surface-fill);
356388 --secondary-foreground: 0 0% 16%;
357- --muted: 0 0% 96%;
358- --muted-foreground: 0 0% 40%;
359- --accent: 0 0% 92%;
389+ --muted: var(--surface-tint);
390+ --muted-foreground: var(--text-subtle);
391+ --accent: var(--surface-fill);
360392 --accent-foreground: 0 0% 13%;
361393 --destructive: 356 82% 51%;
362394 --destructive-foreground: 0 0% 100%;
363- --border: 0 0% 89%;
364- --input: 0 0% 82%;
365- --ring: var(--accent-light, 0 0% 45%);
395+ --border: var(--border-hairline);
396+ --input: var(--border-line);
397+ --ring: var(--accent-light, var(--brand));
366398 --radius: 0.5rem;
367399 --success: 137 63% 39%;
368400 --warning: 38 92% 50%;
@@ -377,31 +409,41 @@
377409 a separate, lighter-lightness variant of the same picked hue so it stays
378410 legible against this theme's near-black background. */
379411 color-scheme: dark;
380- --ui-accent: var(--accent-dark, 0 0% 92%);
381- --background: 0 0% 4%;
382- --foreground: 0 0% 98%;
383- --card: 0 0% 8%;
384- --card-foreground: 0 0% 98%;
385- --popover: 0 0% 8%;
386- --popover-foreground: 0 0% 98%;
412+ --surface-base: 0 0% 6%;
413+ --surface-overlay: 0 0% 6%;
414+ --surface-tint: 0 0% 15%;
415+ --surface-fill: 0 0% 15%;
416+ --text-strong: 0 0% 98%;
417+ --text-default: 0 0% 96%;
418+ --text-subtle: 0 0% 63%;
419+ --text-placeholder: 0 0% 63%;
420+ --border-line: 0 0% 20%;
421+ --border-hairline: 0 0% 20%;
422+ --ui-accent: var(--accent-dark, var(--brand));
423+ --background: var(--surface-overlay);
424+ --foreground: var(--text-strong);
425+ --card: var(--surface-base);
426+ --card-foreground: var(--text-strong);
427+ --popover: var(--surface-base);
428+ --popover-foreground: var(--text-strong);
387429 --primary: var(--ui-accent);
388- --primary-foreground: var(--accent-dark-fg, 0 0% 6%);
389- --secondary: 0 0% 16%;
430+ --primary-foreground: var(--accent-dark-fg, 0 0% 100%);
431+ --secondary: var(--surface-fill);
390432 --secondary-foreground: 0 0% 98%;
391- --muted: 0 0% 13%;
392- --muted-foreground: 0 0% 62%;
393- --accent: 0 0% 18%;
433+ --muted: var(--surface-tint);
434+ --muted-foreground: var(--text-subtle);
435+ --accent: var(--surface-fill);
394436 --accent-foreground: 0 0% 98%;
395437 --destructive: 357 94% 64%;
396438 --destructive-foreground: 0 0% 100%;
397- --border: 0 0% 17%;
398- --input: 0 0% 24%;
399- --ring: var(--accent-dark, 0 0% 45%);
439+ --border: var(--border-hairline);
440+ --input: var(--border-line);
441+ --ring: var(--accent-dark, var(--brand));
400442 --success: 137 58% 58%;
401443 --warning: 38 92% 54%;
402444 --info: 219 98% 60%;
403- --surface-elevated: 0 0% 10%;
404- --sidebar: 0 0% 4%;
445+ --surface-elevated: var(--surface-fill);
446+ --sidebar: var(--surface-base);
405447 --sidebar-foreground: 0 0% 98%;
406448 }
407449
src/lib/payments.tsmodified+3 -3
@@ -13,9 +13,9 @@ export type StatementStatus = {
1313 // receivables-aging colors: green current/paid, amber partial, red overdue.
1414 export function statementStatus(entry: StatementEntry): StatementStatus {
1515 if (entry.reversed) return { key: "payments.statusCancelled", class: "border-border bg-muted/40 text-muted-foreground", dot: "bg-muted-foreground/50" };
16- if (entry.outstanding_minor <= 0) return { key: "payments.paid", class: "border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300", dot: "bg-emerald-500" };
17- if (entry.overdue) return { key: "payments.overdue", class: "border-red-500/40 bg-red-500/10 text-red-700 dark:text-red-300", dot: "bg-red-500" };
18- if (entry.credited_minor > 0) return { key: "payments.statusPartial", class: "border-amber-500/40 bg-amber-500/10 text-amber-800 dark:text-amber-200", dot: "bg-amber-500" };
16+ if (entry.outstanding_minor <= 0) return { key: "payments.paid", class: "border-success/50 bg-success/10 text-success", dot: "bg-success" };
17+ if (entry.overdue) return { key: "payments.overdue", class: "border-destructive/50 bg-destructive/10 text-destructive", dot: "bg-destructive" };
18+ if (entry.credited_minor > 0) return { key: "payments.statusPartial", class: "border-warning/50 bg-warning/10 text-warning", dot: "bg-warning" };
1919 return { key: "payments.statusPending", class: "border-border bg-background/50 text-muted-foreground", dot: "bg-muted-foreground/40" };
2020 }
2121
src/pages/admin-user-detail-page.tsxmodified+1 -1
@@ -102,7 +102,7 @@ function AdminUserDetailContent() {
102102 <DetailField label={t("profile.birthDate")} value={current().birth_date || "—"} />
103103 <DetailField label={t("admin.id")} value={current().id} mono />
104104 <div class="space-y-1.5">
105- <p class="text-xs font-medium text-muted-foreground">{t("admin.role")}</p>
105+ <p class="text-xs font-medium text-text-subtle">{t("admin.role")}</p>
106106 <div class="flex gap-2">
107107 <Select
108108 class="h-9"
src/pages/admin-users-page.tsxmodified+3 -5
@@ -50,9 +50,7 @@ function AdminUsersContent() {
5050
5151 return (
5252 <div class="space-y-6">
53- <div class="space-y-2">
54- <PageHeader eyebrow={t("nav.users")} title={t("admin.title")} description={t("admin.subtitle")} />
55- </div>
53+ <PageHeader eyebrow={t("nav.users")} title={t("admin.title")} description={t("admin.subtitle")} />
5654
5755 <Show when={flash()}>
5856 <Alert variant="success">{flash()}</Alert>
@@ -63,7 +61,7 @@ function AdminUsersContent() {
6361 <For each={ROLES}>{(role) => <Metric role={role} label={t(`role.${role}` as MessageKey)} value={roleCount(role)} />}</For>
6462 </section>
6563
66- <div class="data-shell space-y-4 border-sky-500/15 bg-sky-500/2.5 p-4">
64+ <div class="data-shell space-y-4 p-4">
6765 <Suspense fallback={<DataTableSkeleton columns={6} rows={8} />}>
6866 <Show when={list()}>
6967 <UserTable
@@ -92,7 +90,7 @@ function AdminUsersContent() {
9290 function Metric(props: { role: Role; label: string; value: number }) {
9391 return (
9492 <article class="data-shell p-4">
95- <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{props.label}</p>
93+ <p class="text-xs font-medium text-text-subtle">{props.label}</p>
9694 <p class="mono mt-2 text-2xl font-semibold tabular-nums">{props.value}</p>
9795 </article>
9896 );
src/pages/bank-question-detail-page.tsxmodified+6 -6
@@ -88,7 +88,7 @@ function BankQuestionDetailContent() {
8888 }
8989 >
9090 {(current) => (
91- <div class="space-y-5">
91+ <div class="mx-auto w-full max-w-[1100px] space-y-6">
9292 <Show when={error()}>
9393 <Alert variant="destructive">{error()}</Alert>
9494 </Show>
@@ -105,11 +105,11 @@ function BankQuestionDetailContent() {
105105 </Button>
106106 </Link>
107107 <Show when={canEdit()}>
108- <Button variant="outline" size="sm" onClick={() => setEditing(true)}>
108+ <Button variant="outline" size="sm" class="rounded-lg" onClick={() => setEditing(true)}>
109109 <IconEdit class="h-4 w-4" />
110110 {t("common.edit")}
111111 </Button>
112- <Button variant="destructive" size="sm" onClick={() => setDeleteOpen(true)}>
112+ <Button variant="destructive" size="sm" class="rounded-lg" onClick={() => setDeleteOpen(true)}>
113113 <IconTrash class="h-4 w-4" />
114114 {t("common.delete")}
115115 </Button>
@@ -135,7 +135,7 @@ function BankQuestionDetailContent() {
135135 <img
136136 src={`/api/bank-questions/${current().id}/image`}
137137 alt={t("questions.image")}
138- class="max-h-80 rounded-lg border object-contain"
138+ class="max-h-80 rounded-lg border border-border-line bg-surface-overlay object-contain"
139139 />
140140 <Show when={canEdit()}>
141141 <Button
@@ -154,10 +154,10 @@ function BankQuestionDetailContent() {
154154
155155 <Show when={current().choices?.length}>
156156 <div class="space-y-2">
157- <p class="text-xs font-medium uppercase tracking-[0.12em] text-muted-foreground">{t("questions.correct")}</p>
157+ <p class="text-xs font-medium text-text-subtle">{t("questions.correct")}</p>
158158 <For each={current().choices ?? []}>
159159 {(choice, index) => (
160- <div class="flex items-center gap-3 rounded-lg border bg-card px-3 py-2.5">
160+ <div class="flex items-center gap-3 rounded-md border border-border-line bg-surface-overlay px-3 py-2.5">
161161 <Badge variant={choice.id === current().correct ? "default" : "outline"}>{index() + 1}</Badge>
162162 <span class="min-w-0 flex-1">{choice.text}</span>
163163 <Show when={current().choice_images?.[index()]}>
src/pages/classes-page.tsxmodified+5 -2
@@ -75,7 +75,10 @@ function ClassesContent() {
7575 {
7676 id: "actions",
7777 header: t("common.actions"),
78- meta: { headerClass: "w-14 text-center", cellClass: "px-1 text-center" },
78+ meta: {
79+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] text-center whitespace-nowrap",
80+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] px-2 text-center whitespace-nowrap",
81+ },
7982 cell: (cell) => (
8083 <Show when={canManage()}>
8184 <TableRowActions
@@ -131,7 +134,7 @@ function ClassesContent() {
131134 <UserSearchSelect id="class-teacher" label={t("classGroups.homeroomTeacher")} value={teacherId()} onChange={setTeacherId} placeholder={t("classGroups.selectTeacher")} role="teacher" />
132135 </div>
133136 <Show when={error()}><Alert variant="destructive">{error()}</Alert></Show>
134- <div class="flex gap-2 border-t pt-4"><Button type="submit" disabled={pending()}>{t("common.create")}</Button><Button type="button" variant="outline" onClick={() => setShowForm(false)}>{t("common.cancel")}</Button></div>
137+ <div class="flex gap-2 border-t border-border-hairline pt-4"><Button type="submit" disabled={pending()}>{t("common.create")}</Button><Button type="button" variant="outline" onClick={() => setShowForm(false)}>{t("common.cancel")}</Button></div>
135138 </form>
136139 </SidePanel>
137140
src/pages/course-detail-page.tsxmodified+31 -31
@@ -231,7 +231,7 @@ function CourseDetailContent() {
231231 <Badge variant="outline" class="rounded-full capitalize">
232232 {examKindLabel(String(cell.row.original.kind), t)}
233233 <Show when={examWeight(cell.row.original, settings()?.exam_kinds)}>
234- {(weight) => <span class="ml-1 text-muted-foreground">({t("courses.weight")}: {weight()})</span>}
234+ {(weight) => <span class="ml-1 text-text-subtle">({t("courses.weight")}: {weight()})</span>}
235235 </Show>
236236 </Badge>
237237 ),
@@ -302,7 +302,7 @@ function CourseDetailContent() {
302302 <PageHeader
303303 title={c().title}
304304 description={c().description || "—"}
305- class="border-border/70"
305+ class="border-border-line"
306306 actions={
307307 <Show when={canManage()}>
308308 <TableRowActions
@@ -327,41 +327,41 @@ function CourseDetailContent() {
327327 }
328328 />
329329 <div class="grid gap-2 sm:grid-cols-2 xl:grid-cols-4">
330- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3">
331- <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
330+ <div class="flex min-w-0 items-center gap-3 rounded-xl border border-border-line bg-surface-base p-3">
331+ <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-surface-tint text-text-subtle">
332332 <IconBook class="h-4 w-4" />
333333 </span>
334334 <div class="min-w-0">
335- <p class="text-xs font-medium text-muted-foreground">{t("courses.kind")}</p>
336- <p class="truncate text-sm font-semibold">{courseKindLabel(c().kind)}</p>
335+ <p class="text-xs font-medium text-text-subtle">{t("courses.kind")}</p>
336+ <p class="truncate text-sm font-semibold text-text-default">{courseKindLabel(c().kind)}</p>
337337 </div>
338338 </div>
339- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3">
340- <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
339+ <div class="flex min-w-0 items-center gap-3 rounded-xl border border-border-line bg-surface-base p-3">
340+ <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-surface-tint text-text-subtle">
341341 <IconCalendarDays class="h-4 w-4" />
342342 </span>
343343 <div class="min-w-0">
344- <p class="text-xs font-medium text-muted-foreground">{t("terms.term")}</p>
345- <p class="truncate text-sm font-semibold">{terms()?.find((term) => term.id === c().term)?.name ?? t("terms.unassigned")}</p>
344+ <p class="text-xs font-medium text-text-subtle">{t("terms.term")}</p>
345+ <p class="truncate text-sm font-semibold text-text-default">{terms()?.find((term) => term.id === c().term)?.name ?? t("terms.unassigned")}</p>
346346 </div>
347347 </div>
348- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3">
349- <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
348+ <div class="flex min-w-0 items-center gap-3 rounded-xl border border-border-line bg-surface-base p-3">
349+ <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-surface-tint text-text-subtle">
350350 <IconUsers class="h-4 w-4" />
351351 </span>
352352 <div class="min-w-0">
353- <p class="text-xs font-medium text-muted-foreground">{t("courses.capacity")}</p>
354- <p class="mono truncate text-sm font-semibold">{c().capacity == null ? "—" : hasCourseManagementRights() ? `${rosterCount()} / ${c().capacity}` : c().capacity}</p>
353+ <p class="text-xs font-medium text-text-subtle">{t("courses.capacity")}</p>
354+ <p class="mono truncate text-sm font-semibold text-text-default">{c().capacity == null ? "—" : hasCourseManagementRights() ? `${rosterCount()} / ${c().capacity}` : c().capacity}</p>
355355 </div>
356356 </div>
357- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3">
358- <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
357+ <div class="flex min-w-0 items-center gap-3 rounded-xl border border-border-line bg-surface-base p-3">
358+ <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-surface-tint text-text-subtle">
359359 <IconExam class="h-4 w-4" />
360360 </span>
361361 <div class="min-w-0">
362- <p class="text-xs font-medium text-muted-foreground">{t("courses.nextExam")}</p>
363- <Show when={nextExam()} fallback={<p class="truncate text-sm font-semibold">{t("courses.noUpcoming")}</p>}>
364- {(exam) => <ExamLink examId={exam().id} class="block truncate text-sm font-semibold hover:text-primary hover:underline">{exam().title}</ExamLink>}
362+ <p class="text-xs font-medium text-text-subtle">{t("courses.nextExam")}</p>
363+ <Show when={nextExam()} fallback={<p class="truncate text-sm font-semibold text-text-default">{t("courses.noUpcoming")}</p>}>
364+ {(exam) => <ExamLink examId={exam().id} class="block truncate text-sm font-semibold text-text-default hover:text-primary hover:underline">{exam().title}</ExamLink>}
365365 </Show>
366366 </div>
367367 </div>
@@ -422,7 +422,7 @@ function CourseDetailContent() {
422422 }, t("common.saved"));
423423 }}
424424 >
425- <div class="space-y-3 rounded-lg border border-border/60 bg-muted/20 p-4">
425+ <div class="space-y-3 rounded-xl border border-border-line bg-surface-tint p-4">
426426 <div class="space-y-1.5">
427427 <Label for="edit-course-title">{t("form.title")}</Label>
428428 <Input
@@ -444,7 +444,7 @@ function CourseDetailContent() {
444444 />
445445 </div>
446446 </div>
447- <div class="space-y-3 rounded-lg border border-border/60 bg-muted/20 p-4">
447+ <div class="space-y-3 rounded-xl border border-border-line bg-surface-tint p-4">
448448 <div class="space-y-1.5">
449449 <Label for="edit-course-kind">{t("courses.kind")}</Label>
450450 <Select id="edit-course-kind" value={kind()} onChange={(e) => setKind(e.currentTarget.value as CourseKind)}>
@@ -463,7 +463,7 @@ function CourseDetailContent() {
463463 <Input id="edit-course-capacity" type="number" min={1} value={capacity()} placeholder={t("courses.capacityOptional")} onInput={(e) => setCapacity(e.currentTarget.value)} />
464464 </div>
465465 </div>
466- <div class="sticky bottom-0 -mx-5 flex flex-wrap gap-2 border-t border-border bg-background px-5 pb-6 pt-4 sm:-mx-6 sm:px-6 sm:pb-6">
466+ <div class="sticky bottom-0 -mx-5 flex flex-wrap gap-2 border-t border-border-line bg-surface-base px-5 pb-6 pt-4 sm:-mx-6 sm:px-6 sm:pb-6">
467467 <Button type="submit" class="flex-1 rounded-xl sm:flex-none" disabled={pending()}>
468468 {t("common.update")}
469469 </Button>
@@ -487,14 +487,14 @@ function CourseDetailContent() {
487487 description={createdCourseExam() ? t("exams.step2Questions") : c().title}
488488 size={examCreateStep() === "questions" ? "wide" : "default"}
489489 >
490- <div class="mb-4 flex rounded-lg border border-border/60 bg-muted/30 p-1">
490+ <div class="mb-4 flex rounded-xl border border-border-line bg-surface-tint p-1">
491491 <button
492492 type="button"
493493 class={cn(
494- "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
494+ "rounded-lg px-3 py-2 text-xs font-semibold transition-colors",
495495 examCreateStep() === "details"
496496 ? "bg-primary text-primary-foreground shadow-2xs"
497- : "text-muted-foreground hover:bg-muted/50",
497+ : "text-text-subtle hover:bg-surface-fill",
498498 )}
499499 onClick={() => setExamCreateStep("details")}
500500 >
@@ -504,12 +504,12 @@ function CourseDetailContent() {
504504 type="button"
505505 disabled={!createdCourseExam()}
506506 class={cn(
507- "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
507+ "rounded-lg px-3 py-2 text-xs font-semibold transition-colors",
508508 examCreateStep() === "questions"
509509 ? "bg-primary text-primary-foreground shadow-2xs"
510510 : createdCourseExam()
511- ? "text-muted-foreground hover:bg-muted/50"
512- : "opacity-40 cursor-not-allowed text-muted-foreground",
511+ ? "text-text-subtle hover:bg-surface-fill"
512+ : "opacity-40 cursor-not-allowed text-text-subtle",
513513 )}
514514 onClick={() => createdCourseExam() && setExamCreateStep("questions")}
515515 >
@@ -598,11 +598,11 @@ function CourseDetailContent() {
598598 <Alert variant="success">{flash()}</Alert>
599599 </Show>
600600 {error() && (
601- <p class="rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive">{error()}</p>
601+ <p class="rounded-xl bg-destructive/10 px-3 py-2 text-sm text-destructive">{error()}</p>
602602 )}
603603
604604 <Tabs value={courseTab()} onChange={setCourseTab} class="space-y-4">
605- <TabsList class="grid w-full grid-cols-2 sm:grid-cols-3 xl:grid-cols-7" aria-label={c().title}>
605+ <TabsList class="flex w-full justify-start overflow-x-auto sm:grid sm:grid-cols-3 xl:grid-cols-7" aria-label={c().title}>
606606 <TabsTrigger value="subjects" class="min-w-0"><IconBook class="h-4 w-4" />{t("subjects.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{subjectCount()}</Badge></TabsTrigger>
607607 <TabsTrigger value="exams" class="min-w-0"><IconExam class="h-4 w-4" />{t("courses.exams")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{examCount()}</Badge></TabsTrigger>
608608 <TabsTrigger value="homework" class="min-w-0"><IconHomework class="h-4 w-4" />{t("homework.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{homeworkCount()}</Badge></TabsTrigger>
@@ -662,7 +662,7 @@ function CourseDetailContent() {
662662 <TabsContent value="teachers" class="space-y-3">
663663 <div class="flex flex-wrap items-center gap-2 text-sm">
664664 <Badge variant="secondary" class="rounded-full">{countDescription(assignedTeacherCount(), t("courses.teachers"))}</Badge>
665- <span class="inline-flex min-w-0 items-center gap-1.5 text-muted-foreground">
665+ <span class="inline-flex min-w-0 items-center gap-1.5 text-text-subtle">
666666 <IconSchool class="h-4 w-4 shrink-0" />
667667 <span>{t("common.creator")}:</span>
668668 <span class="truncate font-medium text-foreground">{c().creator.display_name || c().creator.username}</span>
src/pages/courses-page.tsxmodified+8 -8
@@ -123,13 +123,13 @@ function CoursesContent() {
123123 };
124124
125125 return (
126- <div class="space-y-5">
126+ <div class="space-y-6">
127127 <SidePanel open={canCreate() && showForm()} onOpenChange={setShowForm} title={t("common.createItem", { item: kindInSentence() })} description={t("courses.subtitle", { item: kindLabel() })}>
128128 <form class="space-y-4" onSubmit={createCourse}>
129129 <Show when={limits.error}><ErrorAlert message={formatApiError(limits.error)} onRetry={() => void refetchLimits()} /></Show>
130- <div class="flex items-center justify-between rounded-md border border-border/70 bg-muted/30 px-3 py-2 text-xs text-muted-foreground">
130+ <div class="flex items-center justify-between rounded-xl border border-border-line bg-surface-tint px-3 py-2 text-xs text-text-subtle">
131131 <span>{t("exams.kind")}</span>
132- <span class="font-medium text-foreground">{kindLabelSingular()}</span>
132+ <span class="font-medium text-text-default">{kindLabelSingular()}</span>
133133 </div>
134134 <div class="space-y-3">
135135 <div class="space-y-1.5"><Label for="course-title">{t("form.title")}<span class="ml-0.5 text-destructive">*</span></Label><Input id="course-title" required maxlength={limits.latest?.course.max_title_len} value={title()} onInput={(e) => setTitle(e.currentTarget.value)} /></div>
@@ -143,10 +143,10 @@ function CoursesContent() {
143143 </form>
144144 </SidePanel>
145145
146- <header class="flex flex-wrap items-end justify-between gap-4 border-b border-border pb-5">
146+ <header class="flex flex-wrap items-end justify-between gap-4 border-b border-border-hairline pb-5">
147147 <div class="space-y-1">
148- <h1 class="text-2xl font-semibold tracking-tight">{pageLabel()}</h1>
149- <p class="text-sm text-muted-foreground">{t("courses.pageSubtitle")}</p>
148+ <h1 class="text-2xl font-semibold tracking-tight text-text-strong">{pageLabel()}</h1>
149+ <p class="text-sm text-text-subtle">{t("courses.pageSubtitle")}</p>
150150 </div>
151151 <Show when={canCreate()}>
152152 <Button size="sm" class="min-w-30 rounded-lg" onClick={() => setShowForm(true)}>
@@ -178,14 +178,14 @@ function CoursesContent() {
178178 </TabsList>
179179
180180 <TabsContent value={pageKind() ?? "all"} class="mt-4 space-y-4 border-0 bg-transparent p-0 shadow-none">
181- <section class="rounded-lg border border-border bg-card p-3 shadow-xs" aria-label={t("common.search")}>
181+ <section class="rounded-xl border border-border-line bg-surface-base p-3" aria-label={t("common.search")}>
182182 <DataToolbar
183183 inline
184184 searchValue={search()}
185185 searchPlaceholder={t("common.searchPlaceholder")}
186186 onSearchInput={setSearch}
187187 filters={
188- <Select wrapperClass="w-40 shrink-0 sm:w-52" class="h-9 rounded-md" aria-label={t("terms.term")} value={termFilter()} onChange={(e) => setTermFilter(e.currentTarget.value)}>
188+ <Select wrapperClass="w-40 shrink-0 sm:w-52" class="h-8 rounded-lg" aria-label={t("terms.term")} value={termFilter()} onChange={(e) => setTermFilter(e.currentTarget.value)}>
189189 <option value="all">{t("common.all")}</option>
190190 <option value="unassigned">{t("terms.unassigned")}</option>
191191 <For each={terms.latest ?? []}>{(term) => <option value={term.id}>{term.name}</option>}</For>
src/pages/dashboard-page.tsxmodified+13 -13
@@ -437,18 +437,18 @@ function DashboardContent() {
437437 });
438438
439439 return (
440- <div class="space-y-5">
441- <header class="flex flex-wrap items-end justify-between gap-3">
440+ <div class="space-y-6">
441+ <header class="flex min-h-[66px] flex-wrap items-center justify-between gap-3 border-b border-border-hairline pb-4">
442442 <div class="space-y-1">
443- <h1 class="text-2xl font-semibold tracking-tight">{t("dashboard.welcomeBack", { name: fullName() })}</h1>
444- <p class="text-sm text-muted-foreground">{t("dashboard.welcomeHint")}</p>
443+ <h1 class="text-[28px] font-semibold leading-9 tracking-[-0.02em] text-text-strong">{t("dashboard.welcomeBack", { name: fullName() })}</h1>
444+ <p class="text-sm text-text-subtle">{t("dashboard.welcomeHint")}</p>
445445 </div>
446446 <div class="flex items-center gap-2">
447- <Badge variant="outline" class="rounded-full bg-muted/40">{t(roleKeys[role()])}</Badge>
447+ <Badge variant="outline" class="bg-surface-overlay">{t(roleKeys[role()])}</Badge>
448448 <Show when={myClass()}>
449- {(cls) => <Badge variant="outline" class="rounded-full bg-muted/40">{cls().name}</Badge>}
449+ {(cls) => <Badge variant="outline" class="bg-surface-overlay">{cls().name}</Badge>}
450450 </Show>
451- <time class="text-sm tabular-nums text-muted-foreground">
451+ <time class="text-sm tabular-nums text-text-subtle">
452452 {new Intl.DateTimeFormat(locale() === "tr" ? "tr-TR" : "en-GB", { dateStyle: "medium" }).format(now())}
453453 </time>
454454 </div>
@@ -460,19 +460,19 @@ function DashboardContent() {
460460 </Show>
461461
462462 <section class="space-y-3" aria-labelledby="highlights-heading">
463- <h2 id="highlights-heading" class="text-sm font-semibold">{t("dashboard.highlights")}</h2>
463+ <h2 id="highlights-heading" class="text-sm font-semibold text-text-strong">{t("dashboard.highlights")}</h2>
464464 <div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4">
465465 <For each={stats()}>
466466 {(stat) => (
467- <div class="rounded-lg border border-border bg-card px-4 py-3.5 shadow-xs">
467+ <div class="rounded-xl border border-border-line bg-surface-base px-4 py-4">
468468 <div class="flex items-center gap-2">
469- <span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border border-border bg-muted/30 text-muted-foreground">
469+ <span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-surface-tint text-text-subtle">
470470 <stat.Icon class="h-4 w-4" />
471471 </span>
472- <p class="min-w-0 flex-1 truncate text-xs font-medium text-muted-foreground">{t(stat.labelKey)}</p>
472+ <p class="min-w-0 flex-1 truncate text-xs font-medium text-text-subtle">{t(stat.labelKey)}</p>
473473 </div>
474474 <div class="mt-3">
475- <p class="mono tabular-nums text-2xl font-bold tracking-tight">{stat.value}</p>
475+ <p class="mono tabular-nums text-2xl font-semibold tracking-[-0.02em] text-text-strong">{stat.value}</p>
476476 </div>
477477 </div>
478478 )}
@@ -522,7 +522,7 @@ function DashboardContent() {
522522 </div>
523523 </Show>
524524
525- <section class="flex flex-col gap-4 rounded-lg border border-border bg-card p-4 shadow-xs" aria-labelledby="deadlines-heading">
525+ <section class="flex flex-col gap-4 rounded-xl border border-border-line bg-surface-base p-4" aria-labelledby="deadlines-heading">
526526 <h2 id="deadlines-heading" class="text-base font-semibold tracking-tight">{t("dashboard.deadlines")}</h2>
527527 <DataTable
528528 columns={deadlineColumns()}
src/pages/exam-detail-page.tsxmodified+39 -37
@@ -328,7 +328,10 @@ function ExamDetailContent() {
328328 {
329329 id: "actions",
330330 header: t("common.actions"),
331- meta: { headerClass: "w-14 text-center", cellClass: "px-1 text-center" },
331+ meta: {
332+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
333+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
334+ },
332335 cell: (cell) => (
333336 <TableRowActions
334337 label={t("common.actions")}
@@ -384,8 +387,8 @@ function ExamDetailContent() {
384387 {(ex) => (
385388 <Show when={accessReady()} fallback={<PageSpinner />}>
386389 <Show when={canViewExam()} fallback={<Alert variant="destructive">{t("common.accessDenied")}</Alert>}>
387- <div class="mx-auto w-full max-w-[1440px] space-y-6">
388- <div class="sticky top-14 z-10 -mx-4 space-y-2 bg-background px-4 pb-1 sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8">
390+ <div class="mx-auto w-full max-w-[1100px] space-y-6">
391+ <div class="sticky top-14 z-10 -mx-4 space-y-2 bg-surface-overlay px-4 pb-1 sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8">
389392 <nav class="detail-breadcrumb">
390393 <Link to="/exams">{t("exams.title")}</Link>
391394 <span aria-hidden>›</span>
@@ -394,7 +397,6 @@ function ExamDetailContent() {
394397 <PageHeader
395398 title={ex().title}
396399 description={ex().description || "—"}
397- class="border-border/70"
398400 actions={
399401 <div class="flex flex-wrap items-center gap-2">
400402 <Show when={isStudent() && !isDraft() && isSittable()}>
@@ -402,14 +404,14 @@ function ExamDetailContent() {
402404 <Show when={noAttemptsLeft()}
403405 fallback={
404406 <Link to="/exam-room/$id" params={{ id: id() }}>
405- <Button size="sm" class="flex-1 rounded-xl sm:flex-none">
407+ <Button size="sm" class="flex-1 rounded-lg sm:flex-none">
406408 <IconExam class="h-4 w-4" />
407409 {ownAttempt()?.status === "in_progress" && !ownAttemptClosedByExit() ? t("attempt.resume") : t("attempt.openRoom")}
408410 </Button>
409411 </Link>
410412 }
411413 >
412- <Badge variant="secondary" class="flex-1 rounded-xl px-3 py-2 text-center sm:flex-none">
414+ <Badge variant="secondary" class="flex-1 px-3 py-2 text-center sm:flex-none">
413415 {ownAttempt()?.status === "submitted" ? t("attempt.submitted") : ownAttempt()?.status === "expired" ? t("attempt.expired") : t("attempt.noAttemptsLeft")}
414416 </Badge>
415417 </Show>
@@ -417,7 +419,7 @@ function ExamDetailContent() {
417419 </Show>
418420 <Show when={hasCourseManagementRights() && !isDraft() && !isUpcoming() && isSittable()}>
419421 <Link to="/exams/$id/live" params={{ id: id() }}>
420- <Button size="sm" class="flex-1 rounded-xl sm:flex-none">
422+ <Button size="sm" class="flex-1 rounded-lg sm:flex-none">
421423 <IconEye class="h-4 w-4" />
422424 {isFinished() ? t("exams.finalState") : t("exams.liveMonitor")}
423425 </Button>
@@ -448,20 +450,20 @@ function ExamDetailContent() {
448450 <div class="mt-3 flex flex-wrap items-center gap-2">
449451 <Badge
450452 variant="outline"
451- class={cn("w-fit rounded-full capitalize !bg-transparent !text-foreground", scheduleStatusClass(examStatusTone(detailStatus())))}
453+ class={cn("w-fit capitalize !bg-transparent !text-foreground", scheduleStatusClass(examStatusTone(detailStatus())))}
452454 >
453455 <span class="mr-1.5 inline-block h-1.5 w-1.5 rounded-full bg-muted-foreground" />
454456 {detailStatusLabel()}
455457 </Badge>
456- <Badge variant="outline" class="rounded-full">
458+ <Badge variant="outline">
457459 {examKindLabel(String(ex().kind), t)}
458460 </Badge>
459461 </div>
460462 </PageHeader>
461463 </div>
462464 <div class="grid gap-2 sm:grid-cols-2 xl:grid-cols-4">
463- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
464- <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
465+ <div class="flex min-w-0 items-center gap-3 rounded-xl border border-border-line bg-surface-base p-3.5">
466+ <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-surface-tint text-text-subtle">
465467 <IconExam class="h-4 w-4" />
466468 </span>
467469 <div class="min-w-0">
@@ -469,8 +471,8 @@ function ExamDetailContent() {
469471 <p class="truncate text-sm font-semibold">{examModeLabel(ex().mode)}</p>
470472 </div>
471473 </div>
472- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
473- <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
474+ <div class="flex min-w-0 items-center gap-3 rounded-xl border border-border-line bg-surface-base p-3.5">
475+ <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-surface-tint text-text-subtle">
474476 <IconRefresh class="h-4 w-4" />
475477 </span>
476478 <div class="min-w-0">
@@ -485,8 +487,8 @@ function ExamDetailContent() {
485487 </Show>
486488 </div>
487489 </div>
488- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
489- <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
490+ <div class="flex min-w-0 items-center gap-3 rounded-xl border border-border-line bg-surface-base p-3.5">
491+ <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-surface-tint text-text-subtle">
490492 <IconCalendarDays class="h-4 w-4" />
491493 </span>
492494 <div class="min-w-0">
@@ -499,8 +501,8 @@ function ExamDetailContent() {
499501 </Show>
500502 </div>
501503 </div>
502- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
503- <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
504+ <div class="flex min-w-0 items-center gap-3 rounded-xl border border-border-line bg-surface-base p-3.5">
505+ <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-surface-tint text-text-subtle">
504506 <IconClock class="h-4 w-4" />
505507 </span>
506508 <div class="min-w-0">
@@ -532,7 +534,7 @@ function ExamDetailContent() {
532534 <button
533535 type="button"
534536 onClick={() => setMarkOpen((v) => !v)}
535- class="flex w-full items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left text-sm shadow-xs transition-colors hover:bg-muted/40"
537+ class="flex w-full items-center justify-between gap-3 rounded-md border border-border-line bg-surface-base px-4 py-3 text-left text-sm transition-colors hover:bg-surface-overlay"
536538 >
537539 <span class="inline-flex items-center gap-2 font-medium">
538540 <IconEdit class="h-4 w-4" />
@@ -550,7 +552,7 @@ function ExamDetailContent() {
550552 <div class="flex items-end gap-2">
551553 <Input
552554 id="answer-sheet-mark"
553- class="h-10 flex-1 rounded-lg"
555+ class="h-9 flex-1 rounded-lg"
554556 type="number"
555557 min={0}
556558 max={100}
@@ -559,7 +561,7 @@ function ExamDetailContent() {
559561 onInput={(event) => setClampedAnswerMark(event.currentTarget.value)}
560562 />
561563 <span class="pb-2 text-sm text-muted-foreground">/ 100</span>
562- <Button type="submit" class="h-10 rounded-lg shrink-0" disabled={answerPending() || answerResult.loading}>
564+ <Button type="submit" size="sm" class="rounded-lg shrink-0" disabled={answerPending() || answerResult.loading}>
563565 {t("common.save")}
564566 </Button>
565567 </div>
@@ -569,7 +571,7 @@ function ExamDetailContent() {
569571 </form>
570572 </Show>
571573 <Show when={(markHistory()?.length ?? 0) > 1}>
572- <div class="rounded-lg border border-border bg-card px-4 py-3">
574+ <div class="rounded-md border border-border-line bg-surface-overlay px-4 py-3">
573575 <p class="text-xs font-medium text-muted-foreground">{t("exams.markHistory")}</p>
574576 <ul class="mt-2 space-y-1">
575577 <For each={markHistory()}>
@@ -640,9 +642,9 @@ function ExamDetailContent() {
640642
641643 <Show when={isStudent() && ownResult()}>
642644 {(result) => (
643- <section class="space-y-4 rounded-lg border border-border/70 bg-card p-4" aria-labelledby="own-exam-result">
645+ <section class="data-shell space-y-4 p-4" aria-labelledby="own-exam-result">
644646 <div class="flex flex-wrap items-center gap-3">
645- <span class="flex h-9 w-9 items-center justify-center rounded-xl bg-muted text-muted-foreground">
647+ <span class="flex h-9 w-9 items-center justify-center rounded-md bg-surface-tint text-text-subtle">
646648 <IconClipboardCheck class="h-4 w-4" />
647649 </span>
648650 <h2 id="own-exam-result" class="text-base font-semibold">{t("exams.yourResult")}</h2>
@@ -657,31 +659,31 @@ function ExamDetailContent() {
657659
658660 <Show when={hasCourseManagementRights()}>
659661 <Tabs value={examTab()} onChange={setExamTab} class="space-y-3">
660- <TabsList class="border-primary/10 bg-card/80 shadow-sm">
662+ <TabsList>
661663 <TabsTrigger value="statistics"><IconChart class="h-4 w-4" />{t("exams.statistics")}</TabsTrigger>
662664 <TabsTrigger value="questions"><IconExam class="h-4 w-4" />{t("questions.title")}</TabsTrigger>
663665 <TabsTrigger value="results"><IconClipboardCheck class="h-4 w-4" />{t("exams.results")}</TabsTrigger>
664666 </TabsList>
665667
666- <TabsContent value="statistics" forceMount class="border-border/60 bg-card/80 shadow-sm">
668+ <TabsContent value="statistics" forceMount class="data-shell p-4">
667669 <Suspense fallback={<DataTableSkeleton columns={4} />}>
668670 <Show when={stats()}>
669671 {(s) => (
670672 <div class="grid gap-2 text-sm sm:grid-cols-2 lg:grid-cols-4">
671- <div class="rounded-xl border border-border/70 bg-card p-4">
672- <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.graded")}</p>
673+ <div class="rounded-xl border border-border-line bg-surface-overlay p-4">
674+ <p class="text-xs font-medium text-text-subtle">{t("exams.graded")}</p>
673675 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().graded}</p>
674676 </div>
675- <div class="rounded-xl border border-border/70 bg-card p-4">
676- <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.average")}</p>
677+ <div class="rounded-xl border border-border-line bg-surface-overlay p-4">
678+ <p class="text-xs font-medium text-text-subtle">{t("exams.average")}</p>
677679 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().average == null ? "—" : s().average}</p>
678680 </div>
679- <div class="rounded-xl border border-border/70 bg-card p-4">
680- <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.min")}</p>
681+ <div class="rounded-xl border border-border-line bg-surface-overlay p-4">
682+ <p class="text-xs font-medium text-text-subtle">{t("exams.min")}</p>
681683 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().min == null ? "—" : s().min}</p>
682684 </div>
683- <div class="rounded-xl border border-border/70 bg-card p-4">
684- <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.max")}</p>
685+ <div class="rounded-xl border border-border-line bg-surface-overlay p-4">
686+ <p class="text-xs font-medium text-text-subtle">{t("exams.max")}</p>
685687 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().max == null ? "—" : s().max}</p>
686688 </div>
687689 </div>
@@ -690,13 +692,13 @@ function ExamDetailContent() {
690692 </Suspense>
691693 </TabsContent>
692694
693- <TabsContent value="questions" forceMount class="border-border/60 bg-card/80 shadow-sm">
695+ <TabsContent value="questions" forceMount class="data-shell p-4">
694696 <ExamQuestionsPanel examId={id()} courseId={ex().course} readOnly={isFinished()} embedded />
695697 </TabsContent>
696698
697- <TabsContent value="results" forceMount class="space-y-4 border-border/60 bg-card/80 shadow-sm">
699+ <TabsContent value="results" forceMount class="data-shell space-y-4 p-4">
698700 <div class="flex flex-wrap items-center justify-between gap-3">
699- <Badge variant="secondary" class="rounded-full">{`${resultTotal()} ${t("exams.studentResults")}`}</Badge>
701+ <Badge variant="secondary">{`${resultTotal()} ${t("exams.studentResults")}`}</Badge>
700702 <div class="flex flex-wrap items-center gap-2">
701703 <Show when={isFinished()}>
702704 <label
@@ -765,7 +767,7 @@ function ExamDetailContent() {
765767 <Alert variant="success">{flash()}</Alert>
766768 </Show>
767769 {error() && (
768- <p class="rounded-sm bg-destructive/10 px-3 py-2 text-sm text-destructive">{error()}</p>
770+ <p class="rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive">{error()}</p>
769771 )}
770772
771773 <ConfirmDialog
src/pages/exams-page.tsxmodified+19 -16
@@ -177,7 +177,7 @@ function ExamsContent() {
177177 cell: (cell) => {
178178 const status = cell.row.original.displayStatus;
179179 return (
180- <Badge variant="outline" class={cn("min-w-28 justify-center whitespace-nowrap rounded-full", scheduleStatusClass(examStatusTone(status)))}>
180+ <Badge variant="outline" class={cn("min-w-28 justify-center whitespace-nowrap", scheduleStatusClass(examStatusTone(status)))}>
181181 <span class={cn("mr-1.5 h-1.5 w-1.5 rounded-full", scheduleStatusDotClass(examStatusTone(status)))} />
182182 {statusLabel(status)}
183183 </Badge>
@@ -187,7 +187,10 @@ function ExamsContent() {
187187 {
188188 id: "actions",
189189 header: t("common.actions"),
190- meta: { headerClass: "text-center", cellClass: "text-center" },
190+ meta: {
191+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
192+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
193+ },
191194 cell: (cell) => (
192195 <TableRowActions
193196 label={t("common.actions")}
@@ -265,7 +268,7 @@ function ExamsContent() {
265268 <Alert variant="destructive">{error()}</Alert>
266269 </Show>
267270
268- <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/2.5 p-4">
271+ <section class="data-shell space-y-4 p-4">
269272 <Suspense fallback={<DataTableSkeleton columns={5} rows={8} />}>
270273 <Show when={list.error}>
271274 <Alert variant="destructive">{formatApiError(list.error)}</Alert>
@@ -275,7 +278,7 @@ function ExamsContent() {
275278 description={t("exams.subtitle")}
276279 actions={
277280 canCreate() ? (
278- <Button type="button" size="sm" class="min-w-30" onClick={openCreateModal}>
281+ <Button type="button" size="sm" class="min-w-[7.5rem] rounded-lg" onClick={openCreateModal}>
279282 <IconPlus class="h-4 w-4" />
280283 {t("exams.create")}
281284 </Button>
@@ -324,7 +327,7 @@ function ExamsContent() {
324327 type="button"
325328 variant="ghost"
326329 size="sm"
327- class="h-9 rounded-md px-3 text-xs font-medium text-muted-foreground hover:text-foreground"
330+ class="h-8 rounded-lg px-3 text-[13px] font-medium text-muted-foreground hover:text-foreground"
328331 onClick={() => {
329332 setStatusFilter("all");
330333 setCourseFilter("all");
@@ -353,13 +356,13 @@ function ExamsContent() {
353356 description={createdExam() ? t("exams.step2Questions") : t("exams.subtitle")}
354357 size={createStep() === "questions" ? "wide" : "default"}
355358 >
356- <div class="mb-4 flex rounded-lg border border-indigo-500/15 bg-indigo-500/3 p-1">
359+ <div class="mb-4 flex rounded-md border border-border-line bg-surface-overlay p-1">
357360 <button
358361 type="button"
359362 class={cn(
360- "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
363+ "rounded-md px-3 py-1.5 text-xs font-medium transition-colors",
361364 createStep() === "details"
362- ? "bg-primary text-primary-foreground shadow-2xs"
365+ ? "bg-surface-base text-foreground shadow-xs"
363366 : "text-muted-foreground hover:bg-muted/50",
364367 )}
365368 onClick={() => setCreateStep("details")}
@@ -370,9 +373,9 @@ function ExamsContent() {
370373 type="button"
371374 disabled={!createdExam()}
372375 class={cn(
373- "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
376+ "rounded-md px-3 py-1.5 text-xs font-medium transition-colors",
374377 createStep() === "questions"
375- ? "bg-primary text-primary-foreground shadow-2xs"
378+ ? "bg-surface-base text-foreground shadow-xs"
376379 : createdExam()
377380 ? "text-muted-foreground hover:bg-muted/50"
378381 : "opacity-40 cursor-not-allowed text-muted-foreground",
@@ -385,7 +388,7 @@ function ExamsContent() {
385388
386389 <Show when={createStep() === "details"}>
387390 <Show when={!createdExam()}>
388- <div class="mb-4 space-y-1.5 rounded-lg border border-sky-500/15 bg-sky-500/2.5 p-4">
391+ <div class="mb-4 space-y-1.5 rounded-xl border border-border-line bg-surface-overlay p-4">
389392 <label class="text-sm font-medium" for="exam-course">
390393 {t("exams.selectCourse")}
391394 </label>
@@ -431,13 +434,13 @@ function ExamsContent() {
431434 <Show when={editingExam()}>
432435 {(exam) => (
433436 <div class="space-y-4">
434- <div class="flex rounded-lg border border-indigo-500/15 bg-indigo-500/3 p-1">
437+ <div class="flex rounded-md border border-border-line bg-surface-overlay p-1">
435438 <button
436439 type="button"
437440 class={cn(
438- "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
441+ "rounded-md px-3 py-1.5 text-xs font-medium transition-colors",
439442 editTab() === "details"
440- ? "bg-primary text-primary-foreground shadow-2xs"
443+ ? "bg-surface-base text-foreground shadow-xs"
441444 : "text-muted-foreground hover:bg-muted/50",
442445 )}
443446 onClick={() => setEditTab("details")}
@@ -447,9 +450,9 @@ function ExamsContent() {
447450 <button
448451 type="button"
449452 class={cn(
450- "rounded-xl px-3 py-2 text-xs font-semibold transition-colors",
453+ "rounded-md px-3 py-1.5 text-xs font-medium transition-colors",
451454 editTab() === "questions"
452- ? "bg-primary text-primary-foreground shadow-2xs"
455+ ? "bg-surface-base text-foreground shadow-xs"
453456 : "text-muted-foreground hover:bg-muted/50",
454457 )}
455458 onClick={() => setEditTab("questions")}
src/pages/homework-detail-page.tsxmodified+11 -11
@@ -61,20 +61,20 @@ export default function HomeworkDetailPage() {
6161 }
6262 />
6363 <div class="grid gap-3 text-sm sm:grid-cols-2 lg:grid-cols-4">
64- <div class="detail-metric-card">
65- <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("nav.courses")}</p>
66- <p class="mt-1 font-medium">{course()?.title ?? item().course}</p>
64+ <div class="rounded-xl border border-border-line bg-surface-base px-4 py-4">
65+ <p class="text-xs font-medium uppercase tracking-[0.08em] text-text-subtle">{t("nav.courses")}</p>
66+ <p class="mt-1 font-medium text-text-default">{course()?.title ?? item().course}</p>
6767 </div>
68- <div class="detail-metric-card">
69- <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("subjects.subject")}</p>
70- <p class="mt-1 font-medium">{subject()?.name ?? item().subject}</p>
68+ <div class="rounded-xl border border-border-line bg-surface-base px-4 py-4">
69+ <p class="text-xs font-medium uppercase tracking-[0.08em] text-text-subtle">{t("subjects.subject")}</p>
70+ <p class="mt-1 font-medium text-text-default">{subject()?.name ?? item().subject}</p>
7171 </div>
72- <div class="detail-metric-card">
73- <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("homework.dueAt")}</p>
74- <p class="mono mt-1 font-medium tabular-nums">{formatDateTime(item().due_at, locale())}</p>
72+ <div class="rounded-xl border border-border-line bg-surface-base px-4 py-4">
73+ <p class="text-xs font-medium uppercase tracking-[0.08em] text-text-subtle">{t("homework.dueAt")}</p>
74+ <p class="mono mt-1 font-medium tabular-nums text-text-default">{formatDateTime(item().due_at, locale())}</p>
7575 </div>
76- <div class="detail-metric-card">
77- <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("homework.assigned")}</p>
76+ <div class="rounded-xl border border-border-line bg-surface-base px-4 py-4">
77+ <p class="text-xs font-medium uppercase tracking-[0.08em] text-text-subtle">{t("homework.assigned")}</p>
7878 <Badge variant="outline" class="mt-2 rounded-full">
7979 {item().assigned?.length ? t("common.countItem", { count: item().assigned!.length, item: t("courses.rosterItem") }) : t("homework.wholeCourse")}
8080 </Badge>
src/pages/homework-page.tsxmodified+10 -10
@@ -144,7 +144,7 @@ function HomeworkContent() {
144144 cell: (cell) => (
145145 <div class="min-w-0">
146146 <p class="truncate font-medium">{cell.row.original.title}</p>
147- <p class="truncate text-xs text-muted-foreground">{cell.row.original.description || "—"}</p>
147+ <p class="truncate text-xs text-text-subtle">{cell.row.original.description || "—"}</p>
148148 </div>
149149 ),
150150 },
@@ -152,14 +152,14 @@ function HomeworkContent() {
152152 id: "course",
153153 accessorFn: (row) => courseName(row.course),
154154 header: t("nav.courses"),
155- meta: { cellClass: "text-muted-foreground" },
155+ meta: { cellClass: "text-text-subtle" },
156156 cell: (cell) => courseName(cell.row.original.course),
157157 },
158158 {
159159 id: "due_at",
160160 accessorFn: (row) => row.due_at,
161161 header: t("homework.dueAt"),
162- meta: { cellClass: "mono whitespace-nowrap text-muted-foreground" },
162+ meta: { cellClass: "mono whitespace-nowrap text-text-subtle" },
163163 cell: (cell) => formatDateTime(cell.row.original.due_at, locale()),
164164 },
165165 {
@@ -211,18 +211,18 @@ function HomeworkContent() {
211211 <div class="space-y-1.5">
212212 <Label for="homework-due-global">{t("homework.dueAt")}</Label>
213213 <div class="grid grid-cols-2 gap-2">
214- <DatePicker id="homework-due-global" class="h-10" placeholder={t("form.datePlaceholder")} value={dueDate()} required onChange={setDueDate} />
215- <Input class="h-10 rounded-sm font-mono placeholder:text-muted-foreground/35" placeholder="17:00" value={dueTime()} required onInput={(event) => setDueTime(event.currentTarget.value)} />
214+ <DatePicker id="homework-due-global" class="h-9" placeholder={t("form.datePlaceholder")} value={dueDate()} required onChange={setDueDate} />
215+ <Input class="h-9 rounded-md font-mono placeholder:text-text-placeholder" placeholder="17:00" value={dueTime()} required onInput={(event) => setDueTime(event.currentTarget.value)} />
216216 </div>
217217 </div>
218- <p class="rounded-xl border bg-muted/30 px-3 py-2 text-xs text-muted-foreground">{t("homework.wholeCourseHelp")}</p>
218+ <p class="rounded-xl border border-border-line bg-surface-tint px-3 py-2 text-xs text-text-subtle">{t("homework.wholeCourseHelp")}</p>
219219 <div class="flex flex-wrap gap-2">
220- <Button type="submit" class="rounded-xl" disabled={pending()}>{t("common.create")}</Button>
221- <Button type="button" variant="outline" class="rounded-xl" onClick={() => setCreateOpen(false)}>{t("common.cancel")}</Button>
220+ <Button type="submit" class="rounded-lg" disabled={pending()}>{t("common.create")}</Button>
221+ <Button type="button" variant="outline" class="rounded-lg" onClick={() => setCreateOpen(false)}>{t("common.cancel")}</Button>
222222 </div>
223223 </form>
224224 </SidePanel>
225- <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/2.5 p-4">
225+ <section class="data-shell space-y-4 p-4">
226226 <Suspense fallback={<DataTableSkeleton columns={5} rows={8} />}>
227227 <Show when={list.error}>
228228 <Alert variant="destructive">{formatApiError(list.error)}</Alert>
@@ -232,7 +232,7 @@ function HomeworkContent() {
232232 description={t("homework.listHelp")}
233233 actions={
234234 <Show when={canCreate()}>
235- <Button type="button" size="sm" class="min-w-30" onClick={() => setCreateOpen(true)}>
235+ <Button type="button" size="sm" class="min-w-[7.5rem] rounded-lg" onClick={() => setCreateOpen(true)}>
236236 <IconPlus class="h-4 w-4" />
237237 {t("homework.add")}
238238 </Button>
src/pages/login-page.tsxmodified+34 -8
@@ -3,6 +3,7 @@ import { createResource, createSignal, Show } from "solid-js";
33 import { postLogin } from "@/api/auth";
44 import { getLimits } from "@/api/limits";
55 import { formatApiError } from "@/api/client";
6+import { LogoMark } from "@/components/brand/logo-mark";
67 import { Button } from "@/components/ui/button";
78 import { Input } from "@/components/ui/input";
89 import { Label } from "@/components/ui/label";
@@ -23,6 +24,10 @@ function LoginForm() {
2324 const auth = useAuth();
2425 const navigate = useNavigate();
2526 const t = useT();
27+ // Backend slug bounds (hezarfen_backend MIN_SLUG_LEN / MAX_SLUG_LEN).
28+ const MIN_SCHOOL_SLUG_LEN = 2;
29+ const MAX_SCHOOL_SLUG_LEN = 32;
30+ const [school, setSchool] = createSignal("");
2631 const [username, setUsername] = createSignal("");
2732 const [password, setPassword] = createSignal("");
2833 const [showPassword, setShowPassword] = createSignal(false);
@@ -32,8 +37,13 @@ function LoginForm() {
3237
3338 const handleSubmit = async (e: SubmitEvent) => {
3439 e.preventDefault();
40+ const s = school().trim();
3541 const u = username().trim();
3642 const p = password();
43+ if (s.length < MIN_SCHOOL_SLUG_LEN || s.length > MAX_SCHOOL_SLUG_LEN) {
44+ setError(t("auth.schoolHint"));
45+ return;
46+ }
3747 const userLimits = limits()?.user;
3848 if (userLimits && (u.length < userLimits.min_username_len || u.length > userLimits.max_username_len)) {
3949 setError(t("auth.usernameHint"));
@@ -46,7 +56,7 @@ function LoginForm() {
4656 setError("");
4757 setPending(true);
4858 try {
49- await postLogin({ username: u, password: p });
59+ await postLogin({ school: s, username: u, password: p });
5060 await auth.refresh();
5161 void navigate({ to: "/" });
5262 } catch (err) {
@@ -57,14 +67,30 @@ function LoginForm() {
5767 };
5868
5969 return (
60- <div class="-mx-4 -my-6 flex min-h-[calc(100dvh-3.5rem)] items-center justify-center overflow-hidden px-4 py-8 sm:-mx-6 sm:px-6 lg:-mx-8 lg:-my-8 lg:px-8">
61- <div class="data-shell w-full max-w-sm p-6 shadow-lg sm:p-8">
70+ <div class="-mx-4 -my-6 flex min-h-[var(--app-viewport)] items-center justify-center overflow-hidden px-4 py-8 sm:-mx-6 sm:px-6 lg:-mx-10 lg:px-10">
71+ <div class="w-full max-w-[480px] rounded-xl border border-border-line bg-surface-base px-6 pb-8 pt-9 shadow-[0_10px_24px_-4px_rgba(0,0,0,0.10)] sm:px-10">
6272 <div class="mb-8 text-center">
63- <h1 class="text-3xl font-semibold tracking-tight">{t("auth.loginTitle")}</h1>
64- <p class="mt-1.5 text-sm text-muted-foreground">{t("auth.loginSubtitle")}</p>
73+ <div class="mx-auto mb-5 flex h-12 w-12 items-center justify-center text-text-strong">
74+ <LogoMark size={44} />
75+ </div>
76+ <h1 class="text-[28px] font-semibold leading-9 tracking-[-0.025em] text-text-strong">{t("auth.loginTitle")}</h1>
77+ <p class="mt-2 text-sm leading-[21px] text-text-subtle">{t("auth.loginSubtitle")}</p>
6578 </div>
6679
67- <form class="space-y-5" onSubmit={handleSubmit}>
80+ <form class="space-y-[18px]" onSubmit={handleSubmit}>
81+ <div class="space-y-2">
82+ <Label for="login-school">{t("auth.school")}</Label>
83+ <Input
84+ id="login-school"
85+ class="h-9"
86+ minlength={MIN_SCHOOL_SLUG_LEN}
87+ maxlength={MAX_SCHOOL_SLUG_LEN}
88+ required
89+ value={school()}
90+ onInput={(e) => setSchool(e.currentTarget.value)}
91+ />
92+ </div>
93+
6894 <div class="space-y-2">
6995 <Label for="login-username">{t("auth.username")}</Label>
7096 <Input
@@ -110,12 +136,12 @@ function LoginForm() {
110136 <p class="rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive">{error()}</p>
111137 )}
112138
113- <Button type="submit" class="h-9 w-full text-base" disabled={pending()}>
139+ <Button type="submit" class="h-9 w-full text-sm" disabled={pending()}>
114140 {t("auth.login")}
115141 </Button>
116142 </form>
117143
118- <p class="mt-8 text-center text-sm text-muted-foreground">
144+ <p class="mt-8 border-t border-border-hairline pt-6 text-center text-sm text-text-subtle">
119145 {t("auth.noAccount")}{" "}
120146 <Link to="/register" class="font-semibold text-primary underline-offset-4 hover:underline">
121147 {t("auth.register")}
src/pages/meal-detail-page.tsxmodified+18 -18
@@ -199,7 +199,7 @@ function MealDetailContent() {
199199 </div>
200200
201201 <Show when={conflicts().length > 0}>
202- <Alert class="border-amber-500/40 bg-amber-500/10 text-amber-800 dark:text-amber-200"><span class="flex gap-2"><IconAlert class="mt-0.5 h-4 w-4 shrink-0" /><span>{t("meals.conflict")}: {conflicts().join(", ")}</span></span></Alert>
202+ <Alert class="border-warning/50 bg-warning/10 text-warning"><span class="flex gap-2"><IconAlert class="mt-0.5 h-4 w-4 shrink-0" /><span>{t("meals.conflict")}: {conflicts().join(", ")}</span></span></Alert>
203203 </Show>
204204
205205 <Show when={isParent()}>
@@ -217,11 +217,11 @@ function MealDetailContent() {
217217 <TabsContent value="menu" class="space-y-4">
218218 <div class="grid gap-3 sm:grid-cols-2 lg:grid-cols-3">
219219 <For each={current().dishes}>{(dish) => (
220- <article class="rounded-lg border border-border/70 bg-card p-4">
221- <div class="flex justify-between gap-3"><h2 class="font-semibold">{dish.name}</h2><span class="font-semibold">{formatTry(dish.price_minor, moneyLocale())}</span></div>
222- <p class="mt-2 text-sm text-muted-foreground">{dish.description || "—"}</p>
223- <div class="mt-3 flex flex-wrap gap-1"><For each={dish.tags}>{(tag) => <Badge variant="outline" class={dish.conflicts.includes(tag) ? "border-amber-500/40 bg-amber-500/10 text-amber-800 dark:text-amber-200" : ""}>{dish.conflicts.includes(tag) ? `⚠ ${tag}` : tag}</Badge>}</For></div>
224- <Show when={canManage()}><div class="mt-3 flex gap-2 border-t pt-3"><Button variant="outline" size="sm" onClick={() => openDish(dish)}>{t("common.edit")}</Button><Button variant="ghost" size="sm" class="text-destructive" onClick={() => setDeleteDish(dish)}>{t("common.delete")}</Button></div></Show>
220+ <article class="rounded-xl border border-border-line bg-surface-base p-4">
221+ <div class="flex justify-between gap-3"><h2 class="font-semibold text-text-strong">{dish.name}</h2><span class="font-semibold">{formatTry(dish.price_minor, moneyLocale())}</span></div>
222+ <p class="mt-2 text-sm text-text-subtle">{dish.description || "—"}</p>
223+ <div class="mt-3 flex flex-wrap gap-1"><For each={dish.tags}>{(tag) => <Badge variant="outline" class={dish.conflicts.includes(tag) ? "border-warning/50 bg-warning/10 text-warning" : ""}>{dish.conflicts.includes(tag) ? `⚠ ${tag}` : tag}</Badge>}</For></div>
224+ <Show when={canManage()}><div class="mt-3 flex gap-2 border-t border-border-hairline pt-3"><Button variant="outline" size="sm" onClick={() => openDish(dish)}>{t("common.edit")}</Button><Button variant="ghost" size="sm" class="text-destructive" onClick={() => setDeleteDish(dish)}>{t("common.delete")}</Button></div></Show>
225225 </article>
226226 )}</For>
227227 </div>
@@ -236,40 +236,40 @@ function MealDetailContent() {
236236
237237 <TabsContent value="account" class="space-y-4">
238238 <div class="grid gap-4 lg:grid-cols-2">
239- <section class="data-shell p-4"><h2 class="font-semibold">{t("meals.dietaryProfile")}</h2><div class="mt-3 flex flex-wrap gap-1.5"><For each={profile()?.tags ?? []}>{(tag) => <Badge variant="outline" class="border-amber-500/40 bg-amber-500/10 text-amber-800 dark:text-amber-200">⚠ {tag}</Badge>}</For></div><p class="mt-3 text-sm text-muted-foreground">{profile()?.note || t("meals.noDietaryNotes")}</p></section>
240- <Show when={canReadMoney()}><section class="data-shell p-4"><h2 class="font-semibold">{t("meals.balance")}</h2><p class="mt-3 text-2xl font-semibold tabular-nums">{formatTry(balance()?.balance_minor ?? 0, moneyLocale())}</p></section></Show>
239+ <section class="data-shell p-4"><h2 class="font-semibold text-text-strong">{t("meals.dietaryProfile")}</h2><div class="mt-3 flex flex-wrap gap-1.5"><For each={profile()?.tags ?? []}>{(tag) => <Badge variant="outline" class="border-warning/50 bg-warning/10 text-warning">⚠ {tag}</Badge>}</For></div><p class="mt-3 text-sm text-text-subtle">{profile()?.note || t("meals.noDietaryNotes")}</p></section>
240+ <Show when={canReadMoney()}><section class="data-shell p-4"><h2 class="font-semibold text-text-strong">{t("meals.balance")}</h2><p class="mt-3 text-2xl font-semibold tabular-nums">{formatTry(balance()?.balance_minor ?? 0, moneyLocale())}</p></section></Show>
241241 </div>
242- <Show when={canReadMoney()}><section class="data-shell p-4"><h2 class="font-semibold">{t("meals.ledger")}</h2><div class="mt-3 divide-y divide-border/60"><For each={ledger()?.items ?? []}>{(line) => <div class="flex justify-between gap-3 py-3 text-sm"><div><p class="font-medium">{t(`meals.ledger.${line.kind}` as never)}</p><p class="text-xs text-muted-foreground">{line.note || line.method || "—"} · {formatDateTime(line.created_at, locale())}</p></div><span class="font-semibold tabular-nums">{line.kind === "charge" ? "−" : "+"}{formatTry(line.amount_minor, moneyLocale())}</span></div>}</For></div><Show when={(ledger()?.items.length ?? 0) === 0}><p class="mt-3 text-sm text-muted-foreground">{t("meals.noLedger")}</p></Show></section></Show>
243- <section class="data-shell p-4"><h2 class="font-semibold">{t("meals.attendance")}</h2><div class="mt-3 divide-y divide-border/60"><For each={attendance()?.items ?? []}>{(row) => <div class="flex justify-between gap-3 py-3 text-sm"><span>{row.status}</span><span class="text-muted-foreground">{formatDateTime(row.marked_at, locale())}</span></div>}</For></div></section>
242+ <Show when={canReadMoney()}><section class="data-shell p-4"><h2 class="font-semibold text-text-strong">{t("meals.ledger")}</h2><div class="mt-3 divide-y divide-border-hairline"><For each={ledger()?.items ?? []}>{(line) => <div class="flex justify-between gap-3 py-3 text-sm"><div><p class="font-medium">{t(`meals.ledger.${line.kind}` as never)}</p><p class="text-xs text-text-subtle">{line.note || line.method || "—"} · {formatDateTime(line.created_at, locale())}</p></div><span class="font-semibold tabular-nums">{line.kind === "charge" ? "−" : "+"}{formatTry(line.amount_minor, moneyLocale())}</span></div>}</For></div><Show when={(ledger()?.items.length ?? 0) === 0}><p class="mt-3 text-sm text-text-subtle">{t("meals.noLedger")}</p></Show></section></Show>
243+ <section class="data-shell p-4"><h2 class="font-semibold text-text-strong">{t("meals.attendance")}</h2><div class="mt-3 divide-y divide-border-hairline"><For each={attendance()?.items ?? []}>{(row) => <div class="flex justify-between gap-3 py-3 text-sm"><span>{row.status}</span><span class="text-text-subtle">{formatDateTime(row.marked_at, locale())}</span></div>}</For></div></section>
244244 </TabsContent>
245245
246246 <TabsContent value="service" class="space-y-4">
247247 <div class="data-shell p-4">
248- <h2 class="font-semibold">{t("meals.walkIn")}</h2>
248+ <h2 class="font-semibold text-text-strong">{t("meals.walkIn")}</h2>
249249 <div class="mt-3 flex flex-col gap-2 sm:flex-row sm:items-end"><div class="min-w-0 flex-1"><UserSearchSelect id="meal-walkin" value={walkIn()} onChange={setWalkIn} placeholder={t("form.selectStudent")} /></div><Button disabled={!walkIn() || pending()} onClick={() => void run(async () => { await postMealAttendance(id(), walkIn(), "served"); setWalkIn(""); await refetchService(); })}>{t("meals.served")}</Button></div>
250250 </div>
251251 <Show when={serviceAttendance.error || serviceBookings.error}><ErrorAlert message={formatApiError(serviceAttendance.error || serviceBookings.error)} onRetry={() => void refetchService()} /></Show>
252252 <div class="space-y-2">
253- <For each={serviceEntries()}>{(entry) => <div class="data-shell flex flex-wrap items-center justify-between gap-3 p-3"><div><p class="font-medium">{personLabel(entry.student)}</p><p class="text-xs text-muted-foreground">{entry.booking ? t("meals.booked") : t("meals.walkIn")} · {entry.attendance?.status ?? t("meals.notMarked")}</p></div><div class="flex gap-2"><Button size="sm" variant={entry.attendance?.status === "served" ? "default" : "outline"} onClick={() => void run(async () => { await postMealAttendance(id(), entry.student.id, "served"); await refetchService(); })}>{t("meals.served")}</Button><Button size="sm" variant={entry.attendance?.status === "missed" ? "destructive" : "outline"} onClick={() => void run(async () => { await postMealAttendance(id(), entry.student.id, "missed"); await refetchService(); })}>{t("meals.missed")}</Button><Show when={canManage() && entry.booking?.status === "booked"}><Button size="sm" variant="ghost" class="text-destructive" onClick={() => setCancelBooking(entry.booking)}>{t("meals.cancelBooking")}</Button></Show></div></div>}</For>
253+ <For each={serviceEntries()}>{(entry) => <div class="data-shell flex flex-wrap items-center justify-between gap-3 p-3"><div><p class="font-medium">{personLabel(entry.student)}</p><p class="text-xs text-text-subtle">{entry.booking ? t("meals.booked") : t("meals.walkIn")} · {entry.attendance?.status ?? t("meals.notMarked")}</p></div><div class="flex gap-2"><Button size="sm" variant={entry.attendance?.status === "served" ? "default" : "outline"} onClick={() => void run(async () => { await postMealAttendance(id(), entry.student.id, "served"); await refetchService(); })}>{t("meals.served")}</Button><Button size="sm" variant={entry.attendance?.status === "missed" ? "destructive" : "outline"} onClick={() => void run(async () => { await postMealAttendance(id(), entry.student.id, "missed"); await refetchService(); })}>{t("meals.missed")}</Button><Show when={canManage() && entry.booking?.status === "booked"}><Button size="sm" variant="ghost" class="text-destructive" onClick={() => setCancelBooking(entry.booking)}>{t("meals.cancelBooking")}</Button></Show></div></div>}</For>
254254 </div>
255255 </TabsContent>
256256
257257 <TabsContent value="manage" class="space-y-5">
258- <div class="flex justify-end"><Button size="sm" onClick={() => openDish()}><IconPlus class="h-4 w-4" />{t("meals.addDish")}</Button></div>
258+ <div class="flex justify-end"><Button size="sm" class="rounded-lg" onClick={() => openDish()}><IconPlus class="h-4 w-4" />{t("meals.addDish")}</Button></div>
259259 <section class="data-shell space-y-4 p-4">
260- <h2 class="font-semibold">{t("meals.studentRecord")}</h2>
260+ <h2 class="font-semibold text-text-strong">{t("meals.studentRecord")}</h2>
261261 <UserSearchSelect id="meal-record-user" role="student" value={lookupStudent()} onChange={setLookupStudent} label={t("meals.student")} />
262262 <Show when={lookupStudent()}>
263263 <div class="space-y-3">
264- <div class="flex flex-wrap gap-2"><For each={settings()?.dietary_tags ?? []}>{(tag) => <label class="flex items-center gap-2 rounded-lg border px-3 py-2 text-sm"><input type="checkbox" checked={profileTags().includes(tag)} onChange={() => toggleTag(tag, profileTags(), setProfileTags)} />{tag}</label>}</For></div>
264+ <div class="flex flex-wrap gap-2"><For each={settings()?.dietary_tags ?? []}>{(tag) => <label class="flex items-center gap-2 rounded-lg border border-border-line px-3 py-2 text-sm"><input type="checkbox" checked={profileTags().includes(tag)} onChange={() => toggleTag(tag, profileTags(), setProfileTags)} />{tag}</label>}</For></div>
265265 <Textarea maxlength={limits()?.meal.max_dietary_note_len} value={profileNote()} placeholder={t("meals.dietaryNote")} onInput={(e) => setProfileNote(e.currentTarget.value)} />
266266 <Button disabled={pending()} onClick={() => void run(async () => { await patchDietaryProfileByUserId(lookupStudent(), { tags: profileTags(), note: profileNote().trim() || null }); await refetchProfile(); })}>{t("common.save")}</Button>
267267 </div>
268268 </Show>
269269 </section>
270- <section class="data-shell p-4"><h2 class="font-semibold">{t("meals.bookingAudit")}</h2><div class="mt-3 divide-y divide-border/60"><For each={audit()?.items ?? []}>{(booking) => <div class="flex justify-between gap-3 py-3 text-sm"><span>{personLabel(booking.student)}</span><Badge variant={booking.status === "booked" ? "default" : "secondary"}>{booking.status}</Badge></div>}</For></div></section>
270+ <section class="data-shell p-4"><h2 class="font-semibold text-text-strong">{t("meals.bookingAudit")}</h2><div class="mt-3 divide-y divide-border-hairline"><For each={audit()?.items ?? []}>{(booking) => <div class="flex justify-between gap-3 py-3 text-sm"><span>{personLabel(booking.student)}</span><Badge variant={booking.status === "booked" ? "default" : "secondary"}>{booking.status}</Badge></div>}</For></div></section>
271271 <Show when={isAdmin()}>
272- <section class="data-shell space-y-3 p-4"><h2 class="font-semibold">{t("meals.recordCredit")}</h2><p class="text-sm text-muted-foreground">{t("meals.creditAppendOnly")}</p><Input type="number" min={0.01} step={0.01} value={creditAmount()} placeholder={t("meals.amountTry")} onInput={(e) => setCreditAmount(e.currentTarget.value)} /><Input maxlength={limits()?.meal.max_ledger_method_len} value={creditMethod()} placeholder={t("meals.method")} onInput={(e) => setCreditMethod(e.currentTarget.value)} /><Textarea maxlength={limits()?.meal.max_ledger_note_len} value={creditNote()} placeholder={t("meals.note")} onInput={(e) => setCreditNote(e.currentTarget.value)} /><Button disabled={!lookupStudent() || pending()} onClick={() => void run(async () => { await postMealCredit({ student_id: lookupStudent(), amount_minor: Math.round(Number(creditAmount()) * 100), method: creditMethod().trim() || undefined, note: creditNote().trim() || undefined }); setCreditAmount(""); setCreditMethod(""); setCreditNote(""); await Promise.all([refetchBalance(), refetchLedger()]); }, t("meals.creditRecorded"))}>{t("meals.recordCredit")}</Button></section>
272+ <section class="data-shell space-y-3 p-4"><h2 class="font-semibold text-text-strong">{t("meals.recordCredit")}</h2><p class="text-sm text-text-subtle">{t("meals.creditAppendOnly")}</p><Input type="number" min={0.01} step={0.01} value={creditAmount()} placeholder={t("meals.amountTry")} onInput={(e) => setCreditAmount(e.currentTarget.value)} /><Input maxlength={limits()?.meal.max_ledger_method_len} value={creditMethod()} placeholder={t("meals.method")} onInput={(e) => setCreditMethod(e.currentTarget.value)} /><Textarea maxlength={limits()?.meal.max_ledger_note_len} value={creditNote()} placeholder={t("meals.note")} onInput={(e) => setCreditNote(e.currentTarget.value)} /><Button disabled={!lookupStudent() || pending()} onClick={() => void run(async () => { await postMealCredit({ student_id: lookupStudent(), amount_minor: Math.round(Number(creditAmount()) * 100), method: creditMethod().trim() || undefined, note: creditNote().trim() || undefined }); setCreditAmount(""); setCreditMethod(""); setCreditNote(""); await Promise.all([refetchBalance(), refetchLedger()]); }, t("meals.creditRecorded"))}>{t("meals.recordCredit")}</Button></section>
273273 </Show>
274274 </TabsContent>
275275 </Tabs>
@@ -287,7 +287,7 @@ function MealDetailContent() {
287287 <div class="space-y-1.5"><Label for="dish-name">{t("meals.dishName")}</Label><Input id="dish-name" required maxlength={limits()?.meal.max_dish_name_len} value={dishName()} onInput={(e) => setDishName(e.currentTarget.value)} /></div>
288288 <div class="space-y-1.5"><Label for="dish-description">{t("form.description")}</Label><Textarea id="dish-description" maxlength={limits()?.meal.max_dish_description_len} value={dishDescription()} onInput={(e) => setDishDescription(e.currentTarget.value)} /></div>
289289 <div class="space-y-1.5"><Label for="dish-price">{t("meals.priceTry")}</Label><Input id="dish-price" required type="number" min={0} step={0.01} value={dishPrice()} onInput={(e) => setDishPrice(e.currentTarget.value)} /></div>
290- <div class="flex flex-wrap gap-2"><For each={settings()?.dietary_tags ?? []}>{(tag) => <label class="flex items-center gap-2 rounded-lg border px-3 py-2 text-sm"><input type="checkbox" checked={dishTags().includes(tag)} onChange={() => toggleTag(tag, dishTags(), setDishTags)} />{tag}</label>}</For></div>
290+ <div class="flex flex-wrap gap-2"><For each={settings()?.dietary_tags ?? []}>{(tag) => <label class="flex items-center gap-2 rounded-lg border border-border-line px-3 py-2 text-sm"><input type="checkbox" checked={dishTags().includes(tag)} onChange={() => toggleTag(tag, dishTags(), setDishTags)} />{tag}</label>}</For></div>
291291 <Button type="submit" disabled={pending()}>{t("common.save")}</Button>
292292 </form>
293293 </SidePanel>
src/pages/meals-page.tsxmodified+2 -2
@@ -68,7 +68,7 @@ function MealsContent() {
6868
6969 return (
7070 <div class="space-y-5">
71- <PageHeader eyebrow={t("nav.group.community")} title={t("meals.title")} description={t("meals.subtitle")} actions={<Show when={canManage()}><Button size="sm" class="min-w-30 rounded-lg" onClick={() => { setNewSlot(settings()?.meal_slots[0]?.name ?? ""); setShowCreate(true); }}><IconPlus class="h-4 w-4" />{t("meals.publish")}</Button></Show>} />
71+ <PageHeader eyebrow={t("nav.group.community")} title={t("meals.title")} description={t("meals.subtitle")} actions={<Show when={canManage()}><Button size="sm" class="min-w-[7.5rem] rounded-lg" onClick={() => { setNewSlot(settings()?.meal_slots[0]?.name ?? ""); setShowCreate(true); }}><IconPlus class="h-4 w-4" />{t("meals.publish")}</Button></Show>} />
7272 <SidePanel open={showCreate()} onOpenChange={setShowCreate} title={t("meals.publish")} description={t("meals.publishHelp")}>
7373 <form class="space-y-4" onSubmit={publish}>
7474 <Show when={limits.error}><ErrorAlert message={formatApiError(limits.error)} onRetry={() => void refetchLimits()} /></Show>
@@ -76,7 +76,7 @@ function MealsContent() {
7676 <div class="space-y-1.5"><Label for="meal-slot">{t("meals.slot")}</Label><Select id="meal-slot" required value={newSlot()} onChange={(e) => setNewSlot(e.currentTarget.value)}><For each={settings()?.meal_slots ?? []}>{(item) => <option value={item.name}>{item.name}</option>}</For></Select></div>
7777 <div class="space-y-1.5"><Label for="meal-capacity">{t("meals.capacity")}</Label><Input id="meal-capacity" type="number" min={0} max={limits()?.meal.max_menu_capacity} value={capacity()} onInput={(e) => setCapacity(e.currentTarget.value)} /></div>
7878 <Show when={error()}><Alert variant="destructive">{error()}</Alert></Show>
79- <div class="flex gap-2 border-t pt-4"><Button type="submit" disabled={pending()}>{t("common.create")}</Button><Button type="button" variant="outline" onClick={() => setShowCreate(false)}>{t("common.cancel")}</Button></div>
79+ <div class="flex gap-2 border-t border-border-hairline pt-4"><Button type="submit" disabled={pending()}>{t("common.create")}</Button><Button type="button" variant="outline" onClick={() => setShowCreate(false)}>{t("common.cancel")}</Button></div>
8080 </form>
8181 </SidePanel>
8282 <Show when={flash()}><Alert variant="success">{flash()}</Alert></Show>
src/pages/messages-page.tsxmodified+11 -12
@@ -164,21 +164,20 @@ export default function MessagesPage() {
164164 return (
165165 <RouteGuard>
166166 <div class="min-h-[50vh] bg-background sm:min-h-[calc(100vh-7rem)]">
167- <section class="data-shell overflow-hidden p-0 border-none">
167+ <section class="data-shell overflow-hidden p-0">
168168 <div class="flex min-h-[50vh] flex-col sm:min-h-[calc(100vh-7rem)]">
169169 {/* Folder toolbar — the app shell already owns the global sidebar. */}
170- <aside class="flex flex-wrap items-center gap-2 border-b bg-card/60 px-3 py-2.5">
170+ <aside class="flex flex-wrap items-center gap-2 border-b border-border-hairline bg-surface-overlay px-3 py-2.5">
171171 {/* Compose Button */}
172172 <Button
173- variant="outline"
174173 size="sm"
175- class="order-2 ml-auto h-9 shrink-0 rounded-lg text-xs"
174+ class="order-2 ml-auto shrink-0 rounded-lg text-xs"
176175 onClick={() => {
177176 setReplyData(null);
178177 setComposeOpen(true);
179178 }}
180179 >
181- <IconPlus class="h-5 w-5 text-primary" />
180+ <IconPlus class="h-5 w-5" />
182181 <span>{t("messages.newMessage")}</span>
183182 </Button>
184183
@@ -283,13 +282,13 @@ export default function MessagesPage() {
283282 <main class="flex-1 flex flex-col min-w-0 bg-background">
284283 {/* Top Header Toolbar */}
285284 <Show when={!selected()}>
286- <div class="flex flex-col gap-2 border-b bg-card/40 px-3 py-2.5 sm:flex-row sm:items-center sm:justify-between sm:px-4 sm:py-3">
285+ <div class="flex flex-col gap-2 border-b border-border-hairline bg-surface-overlay px-3 py-2.5 sm:flex-row sm:items-center sm:justify-between sm:px-4 sm:py-3">
287286 <div class="flex w-full items-center gap-2 sm:max-w-xl">
288287 {/* Gmail Refresh Button */}
289288 <Button
290289 variant="outline"
291290 size="sm"
292- class="h-9 px-3 rounded-full text-xs font-semibold shrink-0"
291+ class="h-8 px-3 rounded-lg text-[13px] font-semibold shrink-0"
293292 onClick={handleRefresh}
294293 disabled={isRefreshing()}
295294 title={t("messages.refreshList")}
@@ -304,9 +303,9 @@ export default function MessagesPage() {
304303 </Button>
305304
306305 <div class="relative w-full">
307- <IconSearch class="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
306+ <IconSearch class="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-subtle" />
308307 <Input
309- class="h-9 rounded-full bg-muted/40 pl-9 pr-4 text-xs border-none focus-visible:ring-1"
308+ class="h-8 rounded-lg bg-surface-tint pl-9 pr-4 text-[13px] border-none focus-visible:ring-1"
310309 placeholder={t("messages.search")}
311310 value={query()}
312311 onInput={(event) => setQuery(event.currentTarget.value)}
@@ -319,7 +318,7 @@ export default function MessagesPage() {
319318 <Button
320319 variant="outline"
321320 size="sm"
322- class="h-8 rounded-lg text-xs text-destructive hover:bg-destructive/10"
321+ class="h-8 rounded-lg text-[13px] text-destructive hover:bg-destructive/10"
323322 onClick={handleEmptyTrash}
324323 >
325324 <IconTrash class="mr-1.5 h-3.5 w-3.5" />
@@ -328,7 +327,7 @@ export default function MessagesPage() {
328327 </Show>
329328
330329 <Show when={messagePage()}>
331- <span class="font-mono text-xs text-muted-foreground shrink-0">
330+ <span class="font-mono text-xs text-text-subtle shrink-0">
332331 {messagePage()!.total > 0
333332 ? `${(page() - 1) * limit + 1}-${Math.min(page() * limit, messagePage()!.total)} / ${messagePage()!.total}`
334333 : "0 / 0"}
@@ -400,7 +399,7 @@ export default function MessagesPage() {
400399 </Suspense>
401400
402401 <Show when={messagePage() && messagePage()!.total > limit}>
403- <div class="p-4 border-t">
402+ <div class="p-4 border-t border-border-hairline">
404403 <PaginationControls
405404 page={page()}
406405 onPageChange={setPage}
src/pages/payments-page.tsxmodified+28 -19
@@ -206,8 +206,8 @@ function PaymentsContent() {
206206 if (bal == null) return <span class="text-sm text-muted-foreground">—</span>;
207207 const inDebt = bal < 0;
208208 return (
209- <Badge variant="outline" class={inDebt ? "border-red-500/40 bg-red-500/10 text-red-700 dark:text-red-300" : "border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"}>
210- <span class={`mr-1.5 inline-block h-1.5 w-1.5 rounded-full ${inDebt ? "bg-red-500" : "bg-emerald-500"}`} />
209+ <Badge variant="outline" class={inDebt ? "border-destructive/50 bg-destructive/10 text-destructive" : "border-success/50 bg-success/10 text-success"}>
210+ <span class={`mr-1.5 inline-block h-1.5 w-1.5 rounded-full ${inDebt ? "bg-destructive" : "bg-success"}`} />
211211 {inDebt ? t("payments.inDebt") : t("payments.settled")}
212212 </Badge>
213213 );
@@ -225,7 +225,10 @@ function PaymentsContent() {
225225 {
226226 id: "actions",
227227 header: t("common.actions"),
228- meta: { headerClass: "w-28 min-w-28 text-center whitespace-nowrap" },
228+ meta: {
229+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
230+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
231+ },
229232 cell: (cell) => (
230233 <TableRowActions
231234 label={t("common.actions")}
@@ -335,7 +338,10 @@ function PaymentsContent() {
335338 {
336339 id: "actions",
337340 header: t("common.actions"),
338- meta: { headerClass: "w-28 min-w-28 text-center", cellClass: "text-center" },
341+ meta: {
342+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
343+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
344+ },
339345 cell: (cell) => (
340346 <TableRowActions
341347 label={t("common.actions")}
@@ -417,7 +423,10 @@ function PaymentsContent() {
417423 {
418424 id: "actions",
419425 header: t("common.actions"),
420- meta: { headerClass: "text-center", cellClass: "text-center" },
426+ meta: {
427+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
428+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
429+ },
421430 cell: (cell) => (
422431 <div class="flex items-center justify-center gap-1">
423432 <Button size="sm" variant="outline" class="h-8 gap-1 rounded-lg px-2 text-xs" onClick={() => openAssign(cell.row.original)}>
@@ -555,7 +564,7 @@ function PaymentsContent() {
555564 <Show
556565 when={selectedStudent()}
557566 fallback={
558- <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/2.5 p-4">
567+ <section class="data-shell space-y-4 p-4">
559568 <Suspense fallback={<DataTableSkeleton columns={5} rows={8} />}>
560569 <Show when={studentsPage.error}>
561570 <ErrorAlert message={formatApiError(studentsPage.error)} onRetry={() => void refetchStudents()} />
@@ -609,13 +618,13 @@ function PaymentsContent() {
609618 </Button>
610619 </div>
611620 <div class="grid gap-3 sm:grid-cols-2 lg:grid-cols-4">
612- <div class="detail-metric-card"><p class="text-xs uppercase text-muted-foreground">{t("payments.totalDebt")}</p><p class="mt-1 font-semibold tabular-nums">{formatTry(summary().billed, moneyLocale())}</p></div>
613- <div class="detail-metric-card"><p class="text-xs uppercase text-muted-foreground">{t("payments.collected")}</p><p class="mt-1 font-semibold tabular-nums">{formatTry(summary().collected, moneyLocale())}</p></div>
614- <div class="detail-metric-card"><p class="text-xs uppercase text-muted-foreground">{t("payments.balance")}</p><p class="mt-1 font-semibold tabular-nums" classList={{ "text-destructive": summary().balance < 0 }}>{formatTry(summary().balance, moneyLocale())}</p></div>
615- <div class="detail-metric-card"><p class="text-xs uppercase text-muted-foreground">{t("payments.overdueCount")}</p><p class="mt-1 font-semibold tabular-nums" classList={{ "text-destructive": summary().overdue > 0 }}>{summary().overdue}</p></div>
621+ <div class="detail-metric-card"><p class="text-xs font-medium text-text-subtle">{t("payments.totalDebt")}</p><p class="mt-1 font-semibold tabular-nums">{formatTry(summary().billed, moneyLocale())}</p></div>
622+ <div class="detail-metric-card"><p class="text-xs font-medium text-text-subtle">{t("payments.collected")}</p><p class="mt-1 font-semibold tabular-nums">{formatTry(summary().collected, moneyLocale())}</p></div>
623+ <div class="detail-metric-card"><p class="text-xs font-medium text-text-subtle">{t("payments.balance")}</p><p class="mt-1 font-semibold tabular-nums" classList={{ "text-destructive": summary().balance < 0 }}>{formatTry(summary().balance, moneyLocale())}</p></div>
624+ <div class="detail-metric-card"><p class="text-xs font-medium text-text-subtle">{t("payments.overdueCount")}</p><p class="mt-1 font-semibold tabular-nums" classList={{ "text-destructive": summary().overdue > 0 }}>{summary().overdue}</p></div>
616625 </div>
617626
618- <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/2.5 p-4">
627+ <section class="data-shell space-y-4 p-4">
619628 <Suspense fallback={<DataTableSkeleton columns={5} rows={5} />}>
620629 <Show when={statement.error}>
621630 <ErrorAlert message={formatApiError(statement.error)} onRetry={() => void refetchStatement()} />
@@ -687,12 +696,12 @@ function PaymentsContent() {
687696 {/* ---------------- Fee plans ---------------- */}
688697 <TabsContent value="plans" class="space-y-4">
689698 <div class="flex justify-end">
690- <Button type="button" size="sm" class="min-w-30 rounded-lg" onClick={openCreate}>
699+ <Button type="button" size="sm" class="min-w-[7.5rem] rounded-lg" onClick={openCreate}>
691700 <IconPlus class="h-4 w-4" />
692701 {t("payments.createPlan")}
693702 </Button>
694703 </div>
695- <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/2.5 p-4">
704+ <section class="data-shell space-y-4 p-4">
696705 <Suspense fallback={<DataTableSkeleton columns={4} rows={6} />}>
697706 <Show when={plans.error}>
698707 <ErrorAlert message={formatApiError(plans.error)} onRetry={() => void refetchPlans()} />
@@ -808,8 +817,8 @@ function PaymentsContent() {
808817 <Textarea id="collect-note" maxlength={500} value={collectNote()} onInput={(e) => setCollectNote(e.currentTarget.value)} />
809818 </div>
810819 <div class="flex flex-wrap items-center gap-2">
811- <Button type="button" variant="outline" class="h-10 rounded-lg" onClick={() => setCollectEntry(null)}>{t("common.cancel")}</Button>
812- <Button type="submit" class="h-10 rounded-lg" disabled={pending()}>{t("payments.collect")}</Button>
820+ <Button type="button" variant="outline" onClick={() => setCollectEntry(null)}>{t("common.cancel")}</Button>
821+ <Button type="submit" disabled={pending()}>{t("payments.collect")}</Button>
813822 </div>
814823 </form>
815824 </SidePanel>
@@ -836,8 +845,8 @@ function PaymentsContent() {
836845 <Textarea id="correction-note" maxlength={500} value={actionNote()} onInput={(e) => setActionNote(e.currentTarget.value)} />
837846 </div>
838847 <div class="flex flex-wrap items-center gap-2">
839- <Button type="button" variant="outline" class="h-10 rounded-lg" onClick={() => setLineAction(null)}>{t("common.cancel")}</Button>
840- <Button type="submit" class="h-10 rounded-lg" disabled={pending()}>{t("common.save")}</Button>
848+ <Button type="button" variant="outline" onClick={() => setLineAction(null)}>{t("common.cancel")}</Button>
849+ <Button type="submit" disabled={pending()}>{t("common.save")}</Button>
841850 </div>
842851 </form>
843852 </SidePanel>
@@ -881,8 +890,8 @@ function PaymentsContent() {
881890 </Index>
882891 </div>
883892 <div class="flex flex-wrap items-center gap-2">
884- <Button type="button" variant="outline" class="h-10 rounded-lg" onClick={() => setPanelOpen(false)}>{t("common.cancel")}</Button>
885- <Button type="submit" class="h-10 rounded-lg" disabled={pending()}>{editing() ? t("common.update") : t("common.create")}</Button>
893+ <Button type="button" variant="outline" onClick={() => setPanelOpen(false)}>{t("common.cancel")}</Button>
894+ <Button type="submit" disabled={pending()}>{editing() ? t("common.update") : t("common.create")}</Button>
886895 </div>
887896 </form>
888897 </SidePanel>
src/pages/question-bank-page.tsxmodified+7 -4
@@ -145,7 +145,7 @@ function QuestionBankContent() {
145145 </Badge>
146146 }
147147 >
148- <Badge variant="outline" class="gap-1 whitespace-nowrap border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300">
148+ <Badge variant="outline" class="gap-1 whitespace-nowrap border-success/50 bg-success/10 text-success">
149149 <IconUsers class="h-3 w-3" />
150150 {t("bank.sharedWithSchool")}
151151 </Badge>
@@ -155,7 +155,10 @@ function QuestionBankContent() {
155155 {
156156 id: "actions",
157157 header: t("common.actions"),
158- meta: { headerClass: "w-28 min-w-[7rem] text-center whitespace-nowrap", cellClass: "w-28 min-w-[7rem] text-center whitespace-nowrap" },
158+ meta: {
159+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
160+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
161+ },
159162 cell: (cell) => (
160163 <TableRowActions
161164 label={t("common.actions")}
@@ -198,7 +201,7 @@ function QuestionBankContent() {
198201 <Alert variant="destructive">{error()}</Alert>
199202 </Show>
200203
201- <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/2.5 p-4">
204+ <section class="data-shell space-y-4 p-4">
202205 <Suspense fallback={<DataTableSkeleton columns={5} rows={8} />}>
203206 <Show when={list.error}>
204207 <Alert variant="destructive">{formatApiError(list.error)}</Alert>
@@ -208,7 +211,7 @@ function QuestionBankContent() {
208211 description={`${t("bank.subtitle")} ${t("bank.countTotal", { total: total() })}`}
209212 actions={
210213 <Show when={manageableCourses().length > 0}>
211- <Button type="button" size="sm" class="min-w-30 rounded-lg" onClick={() => setCreateOpen(true)}>
214+ <Button type="button" size="sm" class="min-w-[7.5rem] rounded-lg" onClick={() => setCreateOpen(true)}>
212215 <IconPlus class="h-4 w-4" />
213216 {t("bank.create")}
214217 </Button>
src/pages/register-page.tsxmodified+23 -1
@@ -21,6 +21,10 @@ export default function RegisterPage() {
2121 function RegisterForm() {
2222 const navigate = useNavigate();
2323 const t = useT();
24+ // Backend slug bounds (hezarfen_backend MIN_SLUG_LEN / MAX_SLUG_LEN).
25+ const MIN_SCHOOL_SLUG_LEN = 2;
26+ const MAX_SCHOOL_SLUG_LEN = 32;
27+ const [school, setSchool] = createSignal("");
2428 const [username, setUsername] = createSignal("");
2529 const [password, setPassword] = createSignal("");
2630 const [confirmPassword, setConfirmPassword] = createSignal("");
@@ -31,9 +35,14 @@ function RegisterForm() {
3135
3236 const handleSubmit = async (e: SubmitEvent) => {
3337 e.preventDefault();
38+ const s = school().trim();
3439 const u = username().trim();
3540 const p = password();
3641 const cp = confirmPassword();
42+ if (s.length < MIN_SCHOOL_SLUG_LEN || s.length > MAX_SCHOOL_SLUG_LEN) {
43+ setError(t("auth.schoolHint"));
44+ return;
45+ }
3746 const userLimits = limits()?.user;
3847 if (userLimits && (u.length < userLimits.min_username_len || u.length > userLimits.max_username_len)) {
3948 setError(t("auth.usernameHint"));
@@ -50,7 +59,7 @@ function RegisterForm() {
5059 setError("");
5160 setPending(true);
5261 try {
53- await postRegister({ username: u, password: p });
62+ await postRegister({ school: s, username: u, password: p });
5463 void navigate({ to: "/login" });
5564 } catch (err) {
5665 setError(formatApiError(err));
@@ -68,6 +77,19 @@ function RegisterForm() {
6877 </div>
6978
7079 <form class="space-y-5" onSubmit={handleSubmit}>
80+ <div class="space-y-2">
81+ <Label for="register-school">{t("auth.school")}</Label>
82+ <Input
83+ id="register-school"
84+ class="h-9"
85+ minlength={MIN_SCHOOL_SLUG_LEN}
86+ maxlength={MAX_SCHOOL_SLUG_LEN}
87+ required
88+ value={school()}
89+ onInput={(e) => setSchool(e.currentTarget.value)}
90+ />
91+ </div>
92+
7193 <div class="space-y-2">
7294 <Label for="register-username">{t("auth.username")}</Label>
7395 <Input
src/pages/settings-page.tsxmodified+9 -9
@@ -167,12 +167,12 @@ function SettingsContent() {
167167 <span class="text-xs text-muted-foreground">{t("settings.unsaved")}</span>
168168 </Show>
169169 <Show when={saved() && !dirty()}>
170- <span class="text-xs text-emerald-700 dark:text-emerald-300">{t("settings.saved")}</span>
170+ <span class="text-xs text-success">{t("settings.saved")}</span>
171171 </Show>
172172 <Button
173173 type="button"
174174 size="sm"
175- class="min-w-30 rounded-lg"
175+ class="min-w-[7.5rem] rounded-lg"
176176 disabled={pending() || !dirty()}
177177 onClick={() => void save()}
178178 >
@@ -211,7 +211,7 @@ function SettingsContent() {
211211 <h2 class="text-base font-semibold">{t("settings.examKinds")}</h2>
212212 <p class="mt-0.5 text-xs leading-relaxed text-muted-foreground">{t("settings.examKindsHelp")}</p>
213213 </div>
214- <Badge variant="secondary" class="mono shrink-0 rounded-sm tabular-nums">
214+ <Badge variant="secondary" class="mono shrink-0 tabular-nums">
215215 {examKinds().length}
216216 </Badge>
217217 </div>
@@ -293,7 +293,7 @@ function SettingsContent() {
293293 <h2 class="text-base font-semibold">{t("settings.attendanceStatuses")}</h2>
294294 <p class="mt-0.5 text-xs leading-relaxed text-muted-foreground">{t("settings.attendanceHelp")}</p>
295295 </div>
296- <Badge variant="secondary" class="mono shrink-0 rounded-sm tabular-nums">
296+ <Badge variant="secondary" class="mono shrink-0 tabular-nums">
297297 {attendanceStatuses().length}
298298 </Badge>
299299 </div>
@@ -382,7 +382,7 @@ function SettingsContent() {
382382 <h2 class="text-base font-semibold">{t("settings.gradeBands")}</h2>
383383 <p class="mt-0.5 text-xs leading-relaxed text-muted-foreground">{t("settings.gradeBandsHelp")}</p>
384384 </div>
385- <Badge variant="secondary" class="mono shrink-0 rounded-sm tabular-nums">
385+ <Badge variant="secondary" class="mono shrink-0 tabular-nums">
386386 {gradeBands().length}
387387 </Badge>
388388 </div>
@@ -469,7 +469,7 @@ function SettingsContent() {
469469 </div>
470470 <div class="space-y-1.5">
471471 <Label for="meal-cutoff" class="text-[11px] font-medium uppercase tracking-wide text-muted-foreground">{t("settings.mealCutoff")}</Label>
472- <Input id="meal-cutoff" class="h-10 rounded-md text-right font-mono" type="number" min={0} max={limits()?.meal.max_cancel_cutoff_minutes} value={mealCutoff()} placeholder={t("settings.noCutoff")} onInput={(e) => setMealCutoff(e.currentTarget.value)} />
472+ <Input id="meal-cutoff" class="h-9 rounded-md text-right font-mono" type="number" min={0} max={limits()?.meal.max_cancel_cutoff_minutes} value={mealCutoff()} placeholder={t("settings.noCutoff")} onInput={(e) => setMealCutoff(e.currentTarget.value)} />
473473 </div>
474474 </div>
475475 </section>
@@ -479,7 +479,7 @@ function SettingsContent() {
479479 <header class="border-b border-border/70 px-4 py-3">
480480 <div class="flex items-start justify-between gap-3">
481481 <h2 class="text-base font-semibold">{t("settings.mealSlot")}</h2>
482- <Badge variant="secondary" class="mono shrink-0 rounded-sm tabular-nums">{mealSlots().length}</Badge>
482+ <Badge variant="secondary" class="mono shrink-0 tabular-nums">{mealSlots().length}</Badge>
483483 </div>
484484 </header>
485485 <div class="flex-1 space-y-2 p-4">
@@ -522,7 +522,7 @@ function SettingsContent() {
522522 <header class="border-b border-border/70 px-4 py-3">
523523 <div class="flex items-start justify-between gap-3">
524524 <h2 class="text-base font-semibold">{t("settings.dietaryTags")}</h2>
525- <Badge variant="secondary" class="mono shrink-0 rounded-sm tabular-nums">{dietaryTags().length}</Badge>
525+ <Badge variant="secondary" class="mono shrink-0 tabular-nums">{dietaryTags().length}</Badge>
526526 </div>
527527 </header>
528528 <div class="flex-1 space-y-2 p-4">
@@ -562,7 +562,7 @@ function SettingsContent() {
562562 </div>
563563 <Input
564564 aria-label={t("settings.maxFileSize")}
565- class="h-10 rounded-md text-right font-mono"
565+ class="h-9 rounded-md text-right font-mono"
566566 type="number"
567567 min={(limits()?.file.min_max_file_bytes ?? 1024) / BYTES_PER_MIB}
568568 max={(limits()?.file.max_max_file_bytes ?? 25 * BYTES_PER_MIB) / BYTES_PER_MIB}
src/pages/staff-work-page.tsxmodified+16 -10
@@ -128,7 +128,10 @@ function StaffWorkContent() {
128128 {
129129 id: "actions",
130130 header: t("common.actions"),
131- meta: { headerClass: "w-28 min-w-28 text-center whitespace-nowrap" },
131+ meta: {
132+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
133+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
134+ },
132135 cell: (cell) => (
133136 <TableRowActions
134137 label={t("common.actions")}
@@ -168,12 +171,15 @@ function StaffWorkContent() {
168171 {
169172 id: "status",
170173 header: t("work.status"),
171- cell: (cell) => <Badge variant={cell.row.original.check_out == null ? "default" : "secondary"} class="rounded-sm">{cell.row.original.check_out == null ? t("work.open") : t("work.closed")}</Badge>,
174+ cell: (cell) => <Badge variant={cell.row.original.check_out == null ? "default" : "secondary"}>{cell.row.original.check_out == null ? t("work.open") : t("work.closed")}</Badge>,
172175 },
173176 {
174177 id: "actions",
175178 header: t("common.actions"),
176- meta: { headerClass: "w-28 min-w-28 text-center whitespace-nowrap" },
179+ meta: {
180+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
181+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
182+ },
177183 cell: (cell) => (
178184 <TableRowActions
179185 label={t("common.actions")}
@@ -243,7 +249,7 @@ function StaffWorkContent() {
243249 <Alert variant="success">{flash()}</Alert>
244250 </Show>
245251
246- <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/2.5 p-4">
252+ <section class="data-shell space-y-4 p-4">
247253 <Show when={error() && !viewUser() && !editTarget()}>
248254 <Alert variant="destructive">{error()}</Alert>
249255 </Show>
@@ -315,22 +321,22 @@ function StaffWorkContent() {
315321 <div class="space-y-1.5">
316322 <Label>{t("work.checkIn")}</Label>
317323 <div class="grid grid-cols-2 gap-2">
318- <DatePicker id="staff-check-in-date" class="h-10" placeholder={t("form.datePlaceholder")} value={checkInDate()} required onChange={setCheckInDate} />
319- <Input class="h-10 rounded-sm font-mono" placeholder="09:00" value={checkInTime()} required onInput={(e) => setCheckInTime(e.currentTarget.value)} />
324+ <DatePicker id="staff-check-in-date" class="h-9" placeholder={t("form.datePlaceholder")} value={checkInDate()} required onChange={setCheckInDate} />
325+ <Input class="h-9 rounded-md font-mono" placeholder="09:00" value={checkInTime()} required onInput={(e) => setCheckInTime(e.currentTarget.value)} />
320326 </div>
321327 </div>
322328 <div class="space-y-1.5">
323329 <Label>{t("work.checkOut")}</Label>
324330 <div class="grid grid-cols-2 gap-2">
325- <DatePicker id="staff-check-out-date" class="h-10" placeholder={t("form.datePlaceholder")} value={checkOutDate()} required onChange={setCheckOutDate} />
326- <Input class="h-10 rounded-sm font-mono" placeholder="17:00" value={checkOutTime()} required onInput={(e) => setCheckOutTime(e.currentTarget.value)} />
331+ <DatePicker id="staff-check-out-date" class="h-9" placeholder={t("form.datePlaceholder")} value={checkOutDate()} required onChange={setCheckOutDate} />
332+ <Input class="h-9 rounded-md font-mono" placeholder="17:00" value={checkOutTime()} required onInput={(e) => setCheckOutTime(e.currentTarget.value)} />
327333 </div>
328334 </div>
329335 <div class="flex flex-wrap gap-2">
330- <Button type="button" variant="outline" class="h-10 rounded-lg" onClick={() => setEditTarget(null)}>
336+ <Button type="button" variant="outline" onClick={() => setEditTarget(null)}>
331337 {t("common.cancel")}
332338 </Button>
333- <Button type="submit" class="h-10 rounded-lg" disabled={pending() || !checkInDate().trim() || !checkInTime().trim() || !checkOutDate().trim() || !checkOutTime().trim()}>
339+ <Button type="submit" disabled={pending() || !checkInDate().trim() || !checkInTime().trim() || !checkOutDate().trim() || !checkOutTime().trim()}>
334340 {t("common.update")}
335341 </Button>
336342 </div>
src/pages/student-attendance-page.tsxmodified+5 -2
@@ -79,7 +79,10 @@ function StudentAttendanceContent() {
7979 {
8080 id: "actions",
8181 header: t("common.actions"),
82- meta: { headerClass: "w-28 min-w-28 text-center whitespace-nowrap" },
82+ meta: {
83+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
84+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
85+ },
8386 cell: (cell) => (
8487 <TableRowActions
8588 label={t("common.actions")}
@@ -100,7 +103,7 @@ function StudentAttendanceContent() {
100103
101104 return (
102105 <div class="space-y-6">
103- <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/2.5 p-4">
106+ <section class="data-shell space-y-4 p-4">
104107 <Show when={error() && !viewUser()}>
105108 <Alert variant="destructive">{error()}</Alert>
106109 </Show>
src/pages/student-marks-page.tsxmodified+6 -4
@@ -19,8 +19,7 @@ import { useT } from "@/stores/preferences-context";
1919 const PAGE_SIZE = 10;
2020 const round = (n: number) => (Math.round(n * 100) / 100).toString();
2121 // ponytail: display-only color tiers (70/40 on a 0-100 scale), not a pass/fail rule
22-const avgTone = (v: number) =>
23- v >= 70 ? "text-emerald-600 dark:text-emerald-400" : v >= 40 ? "text-amber-600 dark:text-amber-400" : "text-red-600 dark:text-red-400";
22+const avgTone = (v: number) => (v >= 70 ? "text-success" : v >= 40 ? "text-warning" : "text-destructive");
2423
2524 export default function StudentMarksPage() {
2625 return (
@@ -135,7 +134,10 @@ function StudentMarksContent() {
135134 {
136135 id: "actions",
137136 header: t("common.actions"),
138- meta: { headerClass: "w-28 min-w-28 text-center whitespace-nowrap" },
137+ meta: {
138+ headerClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
139+ cellClass: "w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap",
140+ },
139141 cell: (cell) => (
140142 <TableRowActions
141143 label={t("common.actions")}
@@ -156,7 +158,7 @@ function StudentMarksContent() {
156158
157159 return (
158160 <div class="space-y-6">
159- <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/2.5 p-4">
161+ <section class="data-shell space-y-4 p-4">
160162 <Show when={error() && !viewUser()}>
161163 <Alert variant="destructive">{error()}</Alert>
162164 </Show>
src/pages/whiteboard-page.tsxmodified+12 -12
@@ -204,7 +204,7 @@ function WhiteboardContent() {
204204 <IconChevronLeft class="h-4 w-4" />
205205 {t("common.back")}
206206 </Button>
207- <Button type="button" variant="outline" size="sm" onClick={() => setHistoryOpen(true)}>
207+ <Button type="button" variant="outline" size="sm" class="rounded-lg" onClick={() => setHistoryOpen(true)}>
208208 {t("whiteboard.history")}
209209 </Button>
210210 <Button type="button" size="sm" class="rounded-lg" onClick={() => setSettingsOpen(true)}>
@@ -213,7 +213,7 @@ function WhiteboardContent() {
213213 <Show when={isCreator()}>
214214 <DropdownMenu placement="bottom-end" gutter={8}>
215215 <DropdownMenuTrigger
216- class="inline-flex h-8 w-8 items-center justify-center rounded-lg border border-border/80 bg-muted/45 text-foreground outline-hidden transition-colors hover:border-primary/30 hover:bg-primary/8 hover:text-primary focus-visible:ring-2 focus-visible:ring-ring data-expanded:border-primary/30 data-expanded:bg-primary/10 data-expanded:text-primary"
216+ class="inline-flex h-8 w-8 items-center justify-center rounded-lg border border-border-line bg-surface-tint text-foreground outline-hidden transition-colors hover:border-primary/30 hover:bg-primary/8 hover:text-primary focus-visible:ring-2 focus-visible:ring-ring data-expanded:border-primary/30 data-expanded:bg-primary/10 data-expanded:text-primary"
217217 aria-label={t("common.actions")}
218218 title={t("common.actions")}
219219 >
@@ -230,7 +230,7 @@ function WhiteboardContent() {
230230 {t("whiteboard.clear")}
231231 </DropdownMenuItem>
232232 <DropdownMenuSeparator />
233- <DropdownMenuItem class="text-amber-700 focus:bg-amber-500/10 focus:text-amber-800 data-highlighted:bg-amber-500/10 data-highlighted:text-amber-800 dark:text-amber-400" disabled={busy()} onSelect={() => setTimeout(() => setCloseOpen(true), 0)}>
233+ <DropdownMenuItem class="text-warning focus:bg-warning/10 focus:text-warning data-highlighted:bg-warning/10 data-highlighted:text-warning" disabled={busy()} onSelect={() => setTimeout(() => setCloseOpen(true), 0)}>
234234 <IconLock class="h-4 w-4" />
235235 {t("whiteboard.close")}
236236 </DropdownMenuItem>
@@ -259,20 +259,20 @@ function WhiteboardContent() {
259259 onConnectionChange={setConnection}
260260 onDeleted={() => navigate({ to: "/whiteboards" })}
261261 />
262- <aside class="overflow-hidden rounded-2xl border border-border/70 bg-card shadow-xs">
263- <div class="space-y-2 border-b border-border/70 bg-muted/30 px-4 py-3">
262+ <aside class="overflow-hidden rounded-xl border border-border-line bg-surface-base shadow-xs">
263+ <div class="space-y-2 border-b border-border-hairline bg-surface-tint px-4 py-3">
264264 <div class="flex items-center justify-between gap-2">
265- <h3 class="text-sm font-semibold">{t("whiteboard.roster")}</h3>
266- <Badge variant="secondary" class="rounded-full">{roster().length}</Badge>
265+ <h3 class="text-sm font-semibold text-text-strong">{t("whiteboard.roster")}</h3>
266+ <Badge variant="secondary">{roster().length}</Badge>
267267 </div>
268268 <span class="inline-flex items-center gap-1.5 text-xs font-medium text-muted-foreground">
269269 <span class={connection() === "connected" ? "h-2 w-2 rounded-full bg-success" : "h-2 w-2 rounded-full bg-warning"} />
270270 {connection() === "connected" ? t("ws.connected") : connection() === "connecting" ? t("ws.connecting") : t("ws.disconnected")}
271271 </span>
272272 <div class="flex flex-wrap gap-1.5">
273- <Show when={closed()}><Badge variant="outline" class="rounded-full border-amber-500/40 bg-amber-500/10 text-amber-700">{t("whiteboard.closedBadge")}</Badge></Show>
274- <Show when={locked() && !closed()}><Badge variant="outline" class="rounded-full">{t("whiteboard.lockedBadge")}</Badge></Show>
275- <Show when={!isParticipant()}><Badge variant="outline" class="rounded-full">{t("whiteboard.readOnlyBadge")}</Badge></Show>
273+ <Show when={closed()}><Badge variant="warning">{t("whiteboard.closedBadge")}</Badge></Show>
274+ <Show when={locked() && !closed()}><Badge variant="outline">{t("whiteboard.lockedBadge")}</Badge></Show>
275+ <Show when={!isParticipant()}><Badge variant="outline">{t("whiteboard.readOnlyBadge")}</Badge></Show>
276276 </div>
277277 </div>
278278 <ul class="space-y-1 p-2">
@@ -286,7 +286,7 @@ function WhiteboardContent() {
286286 <span class="flex min-w-0 items-center gap-1.5">
287287 <span class="truncate text-sm font-medium">{nameOf(userId)}</span>
288288 <Show when={userId === live().creator}>
289- <Badge variant="outline" class="shrink-0 rounded-full text-[10px]">{t("whiteboard.creator")}</Badge>
289+ <Badge variant="outline" class="shrink-0 text-[10px]">{t("whiteboard.creator")}</Badge>
290290 </Show>
291291 </span>
292292 <span class="block truncate text-xs text-muted-foreground">{roleOf(userId) || userId}</span>
@@ -351,7 +351,7 @@ function WhiteboardContent() {
351351 summary={b().title}
352352 confirmLabel={t("whiteboard.close")}
353353 icon={<IconLock class="h-4 w-4" />}
354- iconClass="border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-400"
354+ iconClass="border-warning/40 bg-warning/10 text-warning"
355355 onConfirm={doClose}
356356 />
357357 <ConfirmDialog
src/pages/whiteboards-page.tsxmodified+7 -7
@@ -53,7 +53,7 @@ function WhiteboardsContent() {
5353 title={t("whiteboard.title")}
5454 description={t("whiteboard.subtitle")}
5555 actions={
56- <Button type="button" onClick={() => setCreateOpen(true)}>
56+ <Button type="button" size="sm" class="min-w-[7.5rem] rounded-lg" onClick={() => setCreateOpen(true)}>
5757 <IconPlus class="h-4 w-4" />
5858 {t("whiteboard.create")}
5959 </Button>
@@ -112,24 +112,24 @@ function BoardCard(props: { board: Board; isCreator: boolean; onOpen: () => void
112112 return (
113113 <button
114114 type="button"
115- class="flex w-full cursor-pointer flex-col gap-3 rounded-xl border border-border/70 bg-card p-4 text-left shadow-xs outline-hidden transition-all hover:-translate-y-0.5 hover:border-primary/35 hover:bg-muted/25 hover:shadow-sm focus-visible:border-primary/50 focus-visible:ring-2 focus-visible:ring-ring active:translate-y-0"
115+ class="flex w-full cursor-pointer flex-col gap-3 rounded-xl border border-border-line bg-surface-base p-4 text-left shadow-xs outline-hidden transition-all hover:-translate-y-0.5 hover:border-primary/35 hover:bg-surface-tint focus-visible:border-primary/50 focus-visible:ring-2 focus-visible:ring-ring active:translate-y-0"
116116 onClick={props.onOpen}
117117 >
118118 <div class="flex items-start justify-between gap-2">
119- <h3 class="min-w-0 truncate font-semibold">{props.board.title}</h3>
119+ <h3 class="min-w-0 truncate font-semibold text-text-strong">{props.board.title}</h3>
120120 <div class="flex shrink-0 gap-1">
121121 <Show when={props.board.closed_at != null}>
122- <Badge variant="outline" class="rounded-full text-amber-600">{t("whiteboard.closedBadge")}</Badge>
122+ <Badge variant="warning">{t("whiteboard.closedBadge")}</Badge>
123123 </Show>
124124 <Show when={props.board.locked && props.board.closed_at == null}>
125- <Badge variant="outline" class="rounded-full">{t("whiteboard.lockedBadge")}</Badge>
125+ <Badge variant="outline">{t("whiteboard.lockedBadge")}</Badge>
126126 </Show>
127127 <Show when={props.isCreator}>
128- <Badge variant="outline" class="rounded-full">{t("whiteboard.creator")}</Badge>
128+ <Badge variant="outline">{t("whiteboard.creator")}</Badge>
129129 </Show>
130130 </div>
131131 </div>
132- <p class="text-xs text-muted-foreground">
132+ <p class="text-xs text-text-subtle">
133133 {t("whiteboard.createdAt")}: {props.createdLabel} · {props.board.participants.length + 1} {t("whiteboard.participants").toLowerCase()}
134134 </p>
135135 </button>
src/pages/work-log-page.tsxmodified+4 -4
@@ -69,7 +69,7 @@ function WorkLogContent() {
6969 id: "status",
7070 header: t("work.status"),
7171 cell: (cell) => (
72- <Badge variant={cell.row.original.check_out == null ? "default" : "secondary"} class="rounded-sm">
72+ <Badge variant={cell.row.original.check_out == null ? "default" : "secondary"}>
7373 {cell.row.original.check_out == null ? t("work.open") : t("work.closed")}
7474 </Badge>
7575 ),
@@ -115,13 +115,13 @@ function WorkLogContent() {
115115 </Show>
116116 </p>
117117 </div>
118- <Button type="button" size="lg" class="rounded-sm" variant={openEntry() ? "destructive" : "default"} disabled={pending()} onClick={() => void toggle()}>
118+ <Button type="button" size="lg" variant={openEntry() ? "destructive" : "default"} disabled={pending()} onClick={() => void toggle()}>
119119 {openEntry() ? t("work.checkOut") : t("work.checkIn")}
120120 </Button>
121121 </div>
122122 </section>
123123
124- <section class="data-shell space-y-4 border-sky-500/15 bg-sky-500/2.5 p-4">
124+ <section class="data-shell space-y-4 p-4">
125125 <Suspense fallback={<PageSpinner />}>
126126 <Show when={list.error}>
127127 <ErrorAlert message={formatApiError(list.error)} onRetry={() => void refetch()} />
@@ -132,7 +132,7 @@ function WorkLogContent() {
132132 >
133133 <DataTable
134134 title={t("work.entries")}
135- actions={<Badge variant="secondary" class="mono rounded-lg px-3 py-1">{total()}</Badge>}
135+ actions={<Badge variant="secondary" class="mono px-3 py-1">{total()}</Badge>}
136136 columns={columns()}
137137 data={pageItems()}
138138 enablePagination