{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "settings",
  "title": "Settings page",
  "author": "superzero11 <https://github.com/superzero11/uiset>",
  "description": "Profile, security and sessions, notifications, billing with usage and invoices, team with invites and removal, and a danger zone.",
  "dependencies": [
    "@ui-sdk/core@0.1.0-beta.13",
    "@ui-sdk/react@0.1.0-beta.13"
  ],
  "registryDependencies": [
    "https://uiset.dev/r/uiset.json",
    "https://uiset.dev/r/alert-dialog.json",
    "https://uiset.dev/r/app-shell.json",
    "https://uiset.dev/r/avatar.json",
    "https://uiset.dev/r/badge.json",
    "https://uiset.dev/r/button.json",
    "https://uiset.dev/r/card.json",
    "https://uiset.dev/r/data-grid.json",
    "https://uiset.dev/r/dialog.json",
    "https://uiset.dev/r/field.json",
    "https://uiset.dev/r/item-list.json",
    "https://uiset.dev/r/meter.json",
    "https://uiset.dev/r/page-header.json",
    "https://uiset.dev/r/password-input.json",
    "https://uiset.dev/r/scroll-area.json",
    "https://uiset.dev/r/select.json",
    "https://uiset.dev/r/switch.json",
    "https://uiset.dev/r/tabs.json",
    "https://uiset.dev/r/textarea.json",
    "https://uiset.dev/r/toast.json"
  ],
  "files": [
    {
      "path": "registry/uiset/ui/templates/settings.tsx",
      "content": "\"use client\"\n\nimport { inputHints } from \"@ui-sdk/core\"\nimport { createContext, use, useEffect, useRef, useState, type FormEvent, type ReactNode } from \"react\"\nimport {\n  AlertDialog,\n  AlertDialogBackdrop,\n  AlertDialogClose,\n  AlertDialogContent,\n  AlertDialogDescription,\n  AlertDialogTitle,\n  AlertDialogTrigger,\n} from \"../alert-dialog\"\nimport { AppShell, SidebarGroup, SidebarItem, SidebarNav } from \"../app-shell\"\nimport { Avatar, AvatarFallback } from \"../avatar\"\nimport { Badge } from \"../badge\"\nimport { Button } from \"../button\"\nimport { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from \"../card\"\nimport { DataGrid, DataGridSelection, type DataGridColumn } from \"../data-grid\"\nimport {\n  Dialog,\n  DialogBackdrop,\n  DialogClose,\n  DialogContent,\n  DialogDescription,\n  DialogTitle,\n  DialogTrigger,\n} from \"../dialog\"\nimport { Field, FieldDescription, FieldError, FieldLabel, Input } from \"../field\"\nimport { Item, ItemList } from \"../item-list\"\nimport { Meter, MeterIndicator, MeterTrack, MeterValue } from \"../meter\"\nimport { PageHeader } from \"../page-header\"\nimport { ScrollBox } from \"../scroll-area\"\nimport { PasswordInput, PasswordInputControl, PasswordInputToggle } from \"../password-input\"\nimport { Select, SelectContent, SelectItem, SelectLabel, SelectTrigger } from \"../select\"\nimport { Icon } from \"../shell/icons\"\nimport { Switch } from \"../switch\"\nimport { Tabs, TabsList, TabsPanel, TabsTab } from \"../tabs\"\nimport { Textarea } from \"../textarea\"\nimport { toast } from \"../toast\"\nimport { day, money, notificationGroups, sample, timezones, usage, type Invoice, type Member } from \"./settings-sample\"\nimport \"./templates.css\"\n\n// Account settings in six tabs. Every form hands its FormData to `onSave(section, data)`\n// and says so with a toast; buttons that leave the page (change plan, update card) call\n// `onAction`. Destructive steps ask first, and agents need a person's approval for them\n// (data-agent-confirm). Tabs keep their state while you switch. Mount <Toaster /> once.\n\ntype SettingsSection = \"profile\" | \"password\" | \"notifications\" | \"workspace\"\ntype SettingsAction = \"change-photo\" | \"change-plan\" | \"add-seats\" | \"update-card\"\ntype SettingsHandlers = {\n  onSave: (section: SettingsSection, data: FormData) => Promise<void> | void\n  onAction: (action: SettingsAction) => void\n}\nconst Handlers = createContext<SettingsHandlers>({\n  onSave: () => wait(400),\n  onAction: (action) => toast(`${action.replace(\"-\", \" \")}: connect onAction to your billing portal`),\n})\n\nconst wait = (ms: number) => new Promise<void>((resolve) => setTimeout(resolve, ms))\n\nfunction Section({ title, description, children }: { title: string; description?: ReactNode; children: ReactNode }) {\n  return (\n    <section className=\"settings-section\" aria-label={title}>\n      <div className=\"settings-section-intro\">\n        <h2>{title}</h2>\n        {description && <p>{description}</p>}\n      </div>\n      <div className=\"settings-section-body\">{children}</div>\n    </section>\n  )\n}\n\nfunction useSave(section: SettingsSection, message: string) {\n  const { onSave } = use(Handlers)\n  const [saving, setSaving] = useState(false)\n  const onSubmit = async (event: FormEvent<HTMLFormElement>) => {\n    event.preventDefault()\n    if (saving) return\n    setSaving(true)\n    try {\n      await onSave(section, new FormData(event.currentTarget))\n      toast(message)\n    } catch {\n      toast(\"Couldn't save. Try again.\")\n    } finally {\n      setSaving(false)\n    }\n  }\n  return { saving, onSubmit }\n}\n\nfunction ProfileTab() {\n  const [bio, setBio] = useState(sample.profile.bio)\n  const form = useSave(\"profile\", \"Profile saved\")\n  const { onAction } = use(Handlers)\n  return (\n    <Section title=\"Profile\" description=\"How you appear to your team.\">\n      <form className=\"settings-form\" onSubmit={form.onSubmit} aria-label=\"Profile\">\n        <div className=\"settings-avatar-row\">\n          <Avatar role=\"img\" aria-label={sample.profile.name} className=\"settings-avatar\">\n            <AvatarFallback>AL</AvatarFallback>\n          </Avatar>\n          <Button variant=\"outline\" type=\"button\" onClick={() => onAction(\"change-photo\")}>\n            Change photo\n          </Button>\n        </div>\n        <Field name=\"name\">\n          <FieldLabel>Full name</FieldLabel>\n          <Input required defaultValue={sample.profile.name} {...inputHints(\"name\")} />\n          <FieldError match=\"valueMissing\">Enter your name.</FieldError>\n        </Field>\n        <Field name=\"email\">\n          <FieldLabel>Email</FieldLabel>\n          <Input type=\"email\" required defaultValue={sample.profile.email} {...inputHints(\"email\")} />\n          <FieldDescription>\n            Used to sign in. <Badge tone=\"success\">Verified</Badge>\n          </FieldDescription>\n          <FieldError match=\"valueMissing\">Enter your email address.</FieldError>\n          <FieldError match=\"typeMismatch\">Enter an email address like ada@example.com.</FieldError>\n        </Field>\n        <Field name=\"bio\">\n          <FieldLabel>Bio</FieldLabel>\n          <Textarea maxLength={160} value={bio} onValueChange={(value: string) => setBio(value)} autoResize />\n          <FieldDescription>{bio.length} / 160</FieldDescription>\n        </Field>\n        <Field name=\"timezone\">\n          <Select defaultValue={sample.profile.timezone}>\n            <SelectLabel>Time zone</SelectLabel>\n            <SelectTrigger />\n            <SelectContent>\n              {timezones.map((zone) => (\n                <SelectItem key={zone} value={zone}>\n                  {zone.replace(\"_\", \" \")}\n                </SelectItem>\n              ))}\n            </SelectContent>\n          </Select>\n        </Field>\n        <div className=\"settings-actions\">\n          <Button type=\"submit\" aria-disabled={form.saving || undefined}>\n            {form.saving ? \"Saving…\" : \"Save profile\"}\n          </Button>\n        </div>\n      </form>\n    </Section>\n  )\n}\n\nfunction SecurityTab() {\n  const [twoStep, setTwoStep] = useState(true)\n  const [sessions, setSessions] = useState(sample.sessions)\n  const form = useSave(\"password\", \"Password changed\")\n  const sessionsRef = useRef<HTMLDivElement>(null)\n  const focusSession = useRef<number | null>(null)\n  // After signing out of a device, focus the next one's button (or the list's heading).\n  useEffect(() => {\n    const index = focusSession.current\n    if (index === null) return\n    focusSession.current = null\n    const buttons = sessionsRef.current?.querySelectorAll<HTMLElement>(\"button\") ?? []\n    ;(buttons[Math.min(index, buttons.length - 1)] ?? sessionsRef.current?.closest(\"section\")?.querySelector(\"h2\"))?.focus()\n  })\n  return (\n    <>\n      <Section title=\"Password\" description=\"Use at least 10 characters.\">\n        <form className=\"settings-form\" onSubmit={form.onSubmit} aria-label=\"Change password\">\n          <Field name=\"current\">\n            <FieldLabel>Current password</FieldLabel>\n            <PasswordInput required autoComplete=\"current-password\" data-agent-secret=\"\">\n              <PasswordInputControl />\n              <PasswordInputToggle aria-label=\"Show current password\" />\n            </PasswordInput>\n            <FieldError match=\"valueMissing\">Enter your current password.</FieldError>\n          </Field>\n          <Field name=\"next\">\n            <FieldLabel>New password</FieldLabel>\n            <PasswordInput required autoComplete=\"new-password\" data-agent-secret=\"\">\n              <PasswordInputControl minLength={10} />\n              <PasswordInputToggle aria-label=\"Show new password\" />\n            </PasswordInput>\n            <FieldError match=\"valueMissing\">Choose a new password.</FieldError>\n            <FieldError match=\"tooShort\">Use at least 10 characters.</FieldError>\n          </Field>\n          <div className=\"settings-actions\">\n            <Button type=\"submit\" aria-disabled={form.saving || undefined}>\n              {form.saving ? \"Saving…\" : \"Change password\"}\n            </Button>\n          </div>\n        </form>\n      </Section>\n      <Section title=\"Two-step verification\" description=\"A code from your phone each time you sign in somewhere new.\">\n        <Field className=\"settings-switch\">\n          <FieldLabel>Ask for a code at sign-in</FieldLabel>\n          <Switch\n            data-agent-confirm={twoStep ? \"Turns off two-step verification\" : undefined}\n            checked={twoStep}\n            onCheckedChange={(checked: boolean) => {\n              setTwoStep(checked)\n              toast(checked ? \"Two-step verification is on\" : \"Two-step verification is off\")\n            }}\n          />\n        </Field>\n      </Section>\n      <Section title=\"Sessions\" description=\"Where you're signed in.\">\n        <div ref={sessionsRef}>\n        <ItemList label=\"Signed-in devices\">\n          {sessions.map((s) => (\n            <Item\n              key={s.id}\n              title={s.device}\n              description={`${s.where} · ${s.when}`}\n              meta={s.current ? <Badge tone=\"info\">This device</Badge> : undefined}\n              actions={\n                s.current ? undefined : (\n                  <Button\n                    variant=\"ghost\"\n                    data-agent-confirm={`Signs you out on ${s.device}`}\n                    onClick={() => {\n                      const others = sessions.filter((x) => !x.current)\n                      focusSession.current = others.findIndex((x) => x.id === s.id)\n                      setSessions((all) => all.filter((x) => x.id !== s.id))\n                      toast(`Signed out of ${s.device}`)\n                    }}\n                  >\n                    Sign out {s.device}\n                  </Button>\n                )\n              }\n            />\n          ))}\n        </ItemList>\n        </div>\n      </Section>\n    </>\n  )\n}\n\nfunction NotificationsTab() {\n  const form = useSave(\"notifications\", \"Notification settings saved\")\n  return (\n    <Section title=\"Notifications\" description=\"Choose what reaches you, and where.\">\n      <form className=\"settings-form\" onSubmit={form.onSubmit} aria-label=\"Notifications\">\n        {notificationGroups.map((group) => (\n          <fieldset key={group.channel} className=\"settings-fieldset\">\n            <legend>{group.channel}</legend>\n            {group.options.map((option) => (\n              <Field key={option.key} name={option.key} className=\"settings-switch\">\n                <FieldLabel>\n                  {group.channel}: {option.label}\n                </FieldLabel>\n                <Switch defaultChecked={option.on} />\n              </Field>\n            ))}\n          </fieldset>\n        ))}\n        <div className=\"settings-actions\">\n          <Button type=\"submit\" aria-disabled={form.saving || undefined}>\n            {form.saving ? \"Saving…\" : \"Save notification settings\"}\n          </Button>\n        </div>\n      </form>\n    </Section>\n  )\n}\n\nconst invoiceColumns: DataGridColumn<Invoice>[] = [\n  { id: \"id\", header: \"Invoice\", value: (i) => i.id, width: 120 },\n  { id: \"date\", header: \"Date\", type: \"date\", value: (i) => i.date, text: (i) => day.format(i.date), width: 140 },\n  { id: \"amount\", header: \"Amount\", type: \"number\", value: (i) => i.amount, text: (i) => money.format(i.amount), width: 120 },\n  {\n    id: \"status\",\n    header: \"Status\",\n    value: (i) => i.status,\n    render: (i) => <Badge tone={i.status === \"Paid\" ? \"success\" : \"warning\"}>{i.status}</Badge>,\n    width: 110,\n  },\n]\n\nfunction BillingTab() {\n  const { onAction } = use(Handlers)\n  return (\n    <>\n      <Section title=\"Plan\" description=\"Billed monthly. Changes take effect right away.\">\n        <Card className=\"settings-plan\">\n          <CardHeader>\n            <CardTitle>\n              Pro <Badge tone=\"info\">Current plan</Badge>\n            </CardTitle>\n            <CardDescription>$49 a seat each month, 10 seats.</CardDescription>\n          </CardHeader>\n          <CardContent>\n            <div className=\"settings-usage\">\n              {usage.map((u) => (\n                <Meter\n                  key={u.label}\n                  value={u.value}\n                  max={u.max}\n                  aria-label={`${u.label} used`}\n                  format={(value: number) => `${value.toLocaleString(\"en-US\")} of ${u.max.toLocaleString(\"en-US\")} ${u.unit}`}\n                  data-high={u.value / u.max >= 0.75 ? \"\" : undefined}\n                >\n                  {/* Children replace the meter's default parts, so all of them are here, as on the web page. */}\n                  <span className=\"settings-usage-label\">{u.label}</span>\n                  <MeterValue />\n                  <MeterTrack>\n                    <MeterIndicator />\n                  </MeterTrack>\n                </Meter>\n              ))}\n            </div>\n          </CardContent>\n          <CardFooter>\n            <Button onClick={() => onAction(\"change-plan\")}>Change plan</Button>\n            <Button variant=\"ghost\" onClick={() => onAction(\"add-seats\")}>\n              Add seats\n            </Button>\n          </CardFooter>\n        </Card>\n      </Section>\n      <Section title=\"Payment method\">\n        <ItemList label=\"Payment methods\">\n          <Item\n            media={<Icon name=\"card\" />}\n            title=\"Card ending in 4242\"\n            description=\"Expires 08/2028\"\n            actions={\n              <Button variant=\"outline\" onClick={() => onAction(\"update-card\")}>\n                Update card\n              </Button>\n            }\n          />\n        </ItemList>\n      </Section>\n      <Section title=\"Invoices\">\n        <DataGrid\n          label=\"Invoices\"\n          rows={sample.invoices}\n          columns={invoiceColumns}\n          getRowId={(i) => i.id}\n          defaultSort={[{ column: \"date\", direction: \"descending\" }]}\n          height=\"14rem\"\n          locale=\"en-US\"\n        />\n      </Section>\n    </>\n  )\n}\n\nconst memberColumns: DataGridColumn<Member>[] = [\n  { id: \"name\", header: \"Name\", value: (m) => m.name, width: 180, hideable: false },\n  { id: \"email\", header: \"Email\", value: (m) => m.email, width: 220 },\n  { id: \"role\", header: \"Role\", value: (m) => m.role, options: [\"Admin\", \"Member\"], editable: true, width: 120 },\n  { id: \"active\", header: \"Last active\", value: (m) => m.active, width: 120 },\n]\n\nfunction TeamTab() {\n  const [members, setMembers] = useState(sample.members)\n  const [selected, setSelected] = useState<string[]>([])\n  const [confirming, setConfirming] = useState(false)\n  const [inviteError, setInviteError] = useState<string | null>(null)\n  const gridRef = useRef<HTMLDivElement>(null)\n  const chosen = members.filter((m) => selected.includes(m.id) && m.role !== \"Owner\")\n  const who = chosen.length === 1 ? chosen[0]!.name : `${chosen.length} people`\n  const [inviteOpen, setInviteOpen] = useState(false)\n  return (\n    <Section title=\"Team\" description={`${members.length} people in ${sample.workspace}.`}>\n      <div className=\"settings-team-actions\">\n        <Dialog open={inviteOpen} onOpenChange={setInviteOpen}>\n          <DialogTrigger data-variant=\"solid\">\n            <Icon name=\"plus\" />\n            Invite people\n          </DialogTrigger>\n          <DialogBackdrop />\n          <DialogContent>\n            <DialogTitle>Invite people</DialogTitle>\n            <DialogDescription>They'll get an email with a link to join.</DialogDescription>\n            <form\n              className=\"settings-form\"\n              aria-label=\"Invite people\"\n              onSubmit={(event) => {\n                event.preventDefault()\n                const data = new FormData(event.currentTarget)\n                const email = String(data.get(\"invite-email\")).trim()\n                if (members.some((m) => m.email.toLowerCase() === email.toLowerCase())) {\n                  setInviteError(`${email} is already on the team.`)\n                  return\n                }\n                setMembers((all) => [\n                  ...all,\n                  {\n                    id: crypto.randomUUID(),\n                    name: email.split(\"@\")[0]!,\n                    email,\n                    role: String(data.get(\"invite-role\")) as Member[\"role\"],\n                    active: \"Invited\",\n                  },\n                ])\n                setInviteOpen(false)\n                toast(`Invited ${email}`)\n              }}\n            >\n              <Field name=\"invite-email\" invalid={inviteError ? true : undefined}>\n                <FieldLabel>Email address</FieldLabel>\n                <Input type=\"email\" required {...inputHints(\"email\")} onValueChange={() => setInviteError(null)} />\n                {inviteError && <FieldError match>{inviteError}</FieldError>}\n                <FieldError match=\"valueMissing\">Enter an email address.</FieldError>\n                <FieldError match=\"typeMismatch\">Enter an email address like grace@example.com.</FieldError>\n              </Field>\n              <Field name=\"invite-role\">\n                <Select defaultValue=\"Member\" name=\"invite-role\">\n                  <SelectLabel>Role</SelectLabel>\n                  <SelectTrigger />\n                  <SelectContent>\n                    <SelectItem value=\"Member\">Member</SelectItem>\n                    <SelectItem value=\"Admin\">Admin</SelectItem>\n                  </SelectContent>\n                </Select>\n              </Field>\n              <div className=\"settings-actions\">\n                <DialogClose>Cancel invite</DialogClose>\n                <Button type=\"submit\">Send invite</Button>\n              </div>\n            </form>\n          </DialogContent>\n        </Dialog>\n      </div>\n      {/* Check people in the first column, then remove them; the owner always stays. */}\n      <div ref={gridRef}>\n      <DataGrid\n        label=\"Team members\"\n        rows={members}\n        columns={memberColumns}\n        getRowId={(m) => m.id}\n        selectable\n        selected={selected}\n        onSelectedChange={setSelected}\n        height=\"16rem\"\n        locale=\"en-US\"\n        onCellEdit={({ rowId, value }) => {\n          if (members.find((m) => m.id === rowId)?.role === \"Owner\") {\n            toast(\"The owner's role can't change. Make someone else owner first.\")\n            return false\n          }\n          setMembers((all) => all.map((m) => (m.id === rowId ? { ...m, role: value as Member[\"role\"] } : m)))\n          toast(\"Role changed\")\n        }}\n      >\n        <DataGridSelection>\n          <Button variant=\"outline\" disabled={!chosen.length} onClick={() => setConfirming(true)}>\n            Remove from team\n          </Button>\n        </DataGridSelection>\n      </DataGrid>\n      </div>\n      {/* Outside the selection bar, which goes away with the selection; focus returns to the grid. */}\n      <AlertDialog open={confirming} onOpenChange={setConfirming}>\n            <AlertDialogBackdrop />\n            <AlertDialogContent\n              finalFocus={() =>\n                gridRef.current?.querySelector<HTMLElement>('[role=grid] [tabindex=\"0\"]') ?? undefined\n              }\n            >\n              <AlertDialogTitle>Remove {who} from the team?</AlertDialogTitle>\n              <AlertDialogDescription>\n                They lose access right away. You can invite them again later.\n              </AlertDialogDescription>\n              <div className=\"settings-actions\">\n                <AlertDialogClose>Keep them</AlertDialogClose>\n                <AlertDialogClose\n                  data-variant=\"solid\"\n                  data-agent-confirm={`Removes ${who} from the team`}\n                  onClick={() => {\n                    const gone = new Set(chosen.map((m) => m.id))\n                    setMembers((all) => all.filter((m) => !gone.has(m.id)))\n                    setSelected([])\n                    toast(`Removed ${who}`)\n                  }}\n                >\n                  Remove {who}\n                </AlertDialogClose>\n              </div>\n            </AlertDialogContent>\n      </AlertDialog>\n    </Section>\n  )\n}\n\nfunction WorkspaceTab({ workspace }: { workspace: string }) {\n  const [typed, setTyped] = useState(\"\")\n  const form = useSave(\"workspace\", \"Workspace name saved\")\n  return (\n    <>\n      <Section title=\"Workspace\" description=\"The name your team and invoices show.\">\n        <form className=\"settings-form\" onSubmit={form.onSubmit} aria-label=\"Workspace name\">\n          <Field name=\"workspace-name\">\n            <FieldLabel>Workspace name</FieldLabel>\n            <Input required defaultValue={workspace} autoComplete=\"organization\" />\n            <FieldError match=\"valueMissing\">Name the workspace.</FieldError>\n          </Field>\n          <div className=\"settings-actions\">\n            <Button type=\"submit\" aria-disabled={form.saving || undefined}>\n              {form.saving ? \"Saving…\" : \"Save workspace name\"}\n            </Button>\n          </div>\n        </form>\n      </Section>\n      <Section title=\"Danger zone\" description=\"This can't be undone.\">\n        <div className=\"settings-danger\">\n          <div>\n            <strong>Delete {workspace}</strong>\n            <p className=\"settings-muted\">Every project, member and invoice goes with it.</p>\n          </div>\n          <AlertDialog onOpenChange={(open: boolean) => !open && setTyped(\"\")}>\n            <AlertDialogTrigger data-variant=\"destructive\">Delete workspace</AlertDialogTrigger>\n            <AlertDialogBackdrop />\n            <AlertDialogContent>\n              <AlertDialogTitle>Delete {workspace}?</AlertDialogTitle>\n              <AlertDialogDescription>\n                Type the workspace name to confirm. Everything in it is deleted for good.\n              </AlertDialogDescription>\n              <Field>\n                <FieldLabel>Workspace name to confirm</FieldLabel>\n                <Input value={typed} onValueChange={(value: string) => setTyped(value)} autoComplete=\"off\" />\n              </Field>\n              <div className=\"settings-actions\">\n                <AlertDialogClose>Keep the workspace</AlertDialogClose>\n                <AlertDialogClose\n                  data-variant=\"destructive\"\n                  disabled={typed !== workspace}\n                  data-agent-confirm={`Deletes ${workspace} and everything in it`}\n                  onClick={() => toast(`${workspace} is scheduled for deletion`)}\n                >\n                  Delete forever\n                </AlertDialogClose>\n              </div>\n            </AlertDialogContent>\n          </AlertDialog>\n        </div>\n      </Section>\n    </>\n  )\n}\n\nconst tabs = [\n  { id: \"profile\", label: \"Profile\" },\n  { id: \"security\", label: \"Security\" },\n  { id: \"notifications\", label: \"Notifications\" },\n  { id: \"billing\", label: \"Billing\" },\n  { id: \"team\", label: \"Team\" },\n  { id: \"workspace\", label: \"Workspace\" },\n] as const\n\nfunction SettingsTemplate({\n  brand = sample.workspace,\n  contentElement = \"main\",\n  defaultTab = \"profile\",\n  onSave,\n  onAction,\n}: {\n  brand?: ReactNode\n  contentElement?: \"main\" | \"div\"\n  defaultTab?: (typeof tabs)[number][\"id\"]\n  /** Saves a form; reject to show \"Couldn't save\". */\n  onSave?: SettingsHandlers[\"onSave\"]\n  /** Buttons that leave the page: change photo, change plan, add seats, update card. */\n  onAction?: SettingsHandlers[\"onAction\"]\n}) {\n  const fallback = use(Handlers)\n  return (\n    <Handlers value={{ onSave: onSave ?? fallback.onSave, onAction: onAction ?? fallback.onAction }}>\n    <AppShell\n      label=\"Settings navigation\"\n      brand={<span className=\"template-brand\">{brand}</span>}\n      contentElement={contentElement}\n      sidebar={\n        <SidebarNav label=\"Settings sections\">\n          <SidebarGroup title=\"Store\">\n            <SidebarItem href=\"#overview\" icon={<Icon name=\"home\" />}>\n              Overview\n            </SidebarItem>\n            <SidebarItem href=\"#orders\" icon={<Icon name=\"orders\" />}>\n              Orders\n            </SidebarItem>\n          </SidebarGroup>\n          <SidebarGroup title=\"Account\">\n            <SidebarItem href=\"#settings\" current icon={<Icon name=\"settings\" />}>\n              Settings\n            </SidebarItem>\n          </SidebarGroup>\n        </SidebarNav>\n      }\n    >\n      <div className=\"settings\">\n        <PageHeader title=\"Settings\" description=\"Your account, your team and how you pay.\" />\n        <Tabs defaultValue={defaultTab}>\n          <ScrollBox axis=\"x\" data-frame=\"none\" className=\"settings-tabs-frame\" viewport={{ className: \"settings-tabs-scroller\", role: \"group\", \"aria-label\": \"Tabs\" }}>\n            <TabsList aria-label=\"Settings sections\" className=\"settings-tabs\">\n              {tabs.map((t) => (\n                <TabsTab key={t.id} value={t.id}>\n                  {t.label}\n                </TabsTab>\n              ))}\n            </TabsList>\n          </ScrollBox>\n          {/* Kept mounted, so a removed member, an unsaved draft or a sign-out survives a tab switch. */}\n          <TabsPanel value=\"profile\" keepMounted>\n            <ProfileTab />\n          </TabsPanel>\n          <TabsPanel value=\"security\" keepMounted>\n            <SecurityTab />\n          </TabsPanel>\n          <TabsPanel value=\"notifications\" keepMounted>\n            <NotificationsTab />\n          </TabsPanel>\n          <TabsPanel value=\"billing\" keepMounted>\n            <BillingTab />\n          </TabsPanel>\n          <TabsPanel value=\"team\" keepMounted>\n            <TeamTab />\n          </TabsPanel>\n          <TabsPanel value=\"workspace\" keepMounted>\n            <WorkspaceTab workspace={sample.workspace} />\n          </TabsPanel>\n        </Tabs>\n      </div>\n    </AppShell>\n    </Handlers>\n  )\n}\n\nexport { SettingsTemplate }\nexport type { SettingsAction, SettingsSection }\n",
      "type": "registry:ui",
      "target": "@ui/templates/settings.tsx"
    },
    {
      "path": "registry/uiset/ui/templates/settings-sample.ts",
      "content": "// The settings template's sample account, team, invoices and options, framework-free, so\n// the React template and the web page show the same ones.\n\ntype Member = { id: string; name: string; email: string; role: \"Owner\" | \"Admin\" | \"Member\"; active: string }\ntype Invoice = { id: string; date: Date; amount: number; status: \"Paid\" | \"Due\" }\n\nconst sample = {\n  workspace: \"Acme Cloud\",\n  profile: { name: \"Ada Lovelace\", email: \"ada@example.com\", bio: \"Engineer. Writes the release notes.\", timezone: \"Europe/London\" },\n  sessions: [\n    { id: \"s1\", device: \"Chrome on macOS\", where: \"London, this device\", when: \"Active now\", current: true },\n    { id: \"s2\", device: \"Safari on iPhone\", where: \"London\", when: \"2 hours ago\", current: false },\n    { id: \"s3\", device: \"Firefox on Windows\", where: \"Manchester\", when: \"3 days ago\", current: false },\n  ],\n  members: [\n    { id: \"m1\", name: \"Ada Lovelace\", email: \"ada@example.com\", role: \"Owner\", active: \"Now\" },\n    { id: \"m2\", name: \"Grace Hopper\", email: \"grace@example.com\", role: \"Admin\", active: \"Today\" },\n    { id: \"m3\", name: \"Linus Pauling\", email: \"linus@example.com\", role: \"Member\", active: \"Yesterday\" },\n    { id: \"m4\", name: \"Margaret Hamilton\", email: \"margaret@example.com\", role: \"Member\", active: \"Last week\" },\n  ] as Member[],\n  invoices: [\n    { id: \"INV-1042\", date: new Date(\"2026-11-01\"), amount: 490, status: \"Due\" },\n    { id: \"INV-1031\", date: new Date(\"2026-10-01\"), amount: 490, status: \"Paid\" },\n    { id: \"INV-1020\", date: new Date(\"2026-09-01\"), amount: 441, status: \"Paid\" },\n    { id: \"INV-1009\", date: new Date(\"2026-08-01\"), amount: 441, status: \"Paid\" },\n  ] as Invoice[],\n}\n\nconst timezones = [\"Europe/London\", \"Europe/Berlin\", \"America/New_York\", \"America/Los_Angeles\", \"Asia/Tokyo\", \"Asia/Kolkata\"]\nconst money = new Intl.NumberFormat(\"en-US\", { style: \"currency\", currency: \"USD\" })\nconst day = new Intl.DateTimeFormat(\"en-US\", { dateStyle: \"medium\", timeZone: \"UTC\" })\n\nconst notificationGroups = [\n  {\n    channel: \"Email\",\n    options: [\n      { key: \"email-mentions\", label: \"Mentions and replies\", on: true },\n      { key: \"email-digest\", label: \"Weekly digest\", on: true },\n      { key: \"email-product\", label: \"Product news\", on: false },\n    ],\n  },\n  {\n    channel: \"Push\",\n    options: [\n      { key: \"push-mentions\", label: \"Mentions\", on: true },\n      { key: \"push-deploys\", label: \"Failed deploys\", on: true },\n    ],\n  },\n]\n\nconst usage = [\n  { label: \"Seats\", value: 7, max: 10, unit: \"seats\" },\n  { label: \"Storage\", value: 41, max: 100, unit: \"GB\" },\n  { label: \"Build minutes\", value: 2380, max: 3000, unit: \"minutes\" },\n]\n\nexport { day, money, notificationGroups, sample, timezones, usage }\nexport type { Invoice, Member }\n",
      "type": "registry:file",
      "target": "@ui/templates/settings-sample.ts"
    },
    {
      "path": "registry/uiset/ui/templates/templates.css",
      "content": "@layer ui-sdk, uiset.tokens, uiset.base, uiset.skin;\n\n@layer uiset.base {\n  /* Auth */\n\n  .auth-layout {\n    box-sizing: border-box;\n    display: grid;\n    place-items: center;\n    min-block-size: var(--auth-height, 100dvh);\n    padding: clamp(1rem, 4vw, 3rem) 1rem;\n    background: color-mix(in oklch, var(--ui-muted) 55%, var(--ui-background));\n    color: var(--ui-foreground);\n  }\n\n  .auth-panel {\n    display: grid;\n    gap: 1.25rem;\n    /* Its padding counts in its width, with or without a page's box-sizing reset. */\n    box-sizing: border-box;\n    inline-size: min(100%, 24rem);\n    padding: clamp(1.25rem, 4vw, 2rem);\n    border: 1px solid var(--ui-border);\n    border-radius: calc(var(--ui-radius) + 8px);\n    background: var(--ui-background);\n    box-shadow: var(--ui-shadow);\n  }\n\n  .auth-brand {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n    font-weight: 650;\n  }\n\n  .auth-heading {\n    display: grid;\n    gap: 0.25rem;\n  }\n\n  .auth-title {\n    margin: 0;\n    font-size: 1.375rem;\n    font-weight: 650;\n    line-height: 1.2;\n    text-wrap: balance;\n  }\n\n  .auth-description {\n    margin: 0;\n    color: var(--ui-muted-foreground);\n    text-wrap: pretty;\n  }\n\n  .auth-form {\n    display: grid;\n    gap: 1rem;\n  }\n\n  .auth-label-row {\n    display: flex;\n    align-items: baseline;\n    justify-content: space-between;\n    gap: 0.5rem;\n  }\n\n  .auth-link,\n  .auth-footer a,\n  .auth-check a {\n    color: var(--ui-foreground);\n    text-decoration: underline;\n    text-decoration-color: color-mix(in oklch, var(--ui-foreground) 40%, transparent);\n    text-underline-offset: 0.2em;\n    font-size: 0.875rem;\n\n    &:hover {\n      text-decoration-color: currentColor;\n    }\n  }\n\n  .auth-check {\n    display: grid;\n    grid-template-columns: auto 1fr;\n    align-items: center;\n    column-gap: 0.5rem;\n\n    [data-slot=\"field-error\"] {\n      grid-column: 1 / -1;\n    }\n  }\n\n  .auth-submit {\n    inline-size: 100%;\n    min-block-size: 2.5rem;\n\n    &[data-pending] {\n      cursor: progress;\n    }\n\n    .spinner {\n      margin-inline-end: 0.25rem;\n    }\n  }\n\n  .auth-strength {\n    margin-block-start: 0.25rem;\n\n    [data-slot=\"meter-track\"] {\n      block-size: 4px;\n    }\n\n    &[data-strength=\"1\"] [data-slot=\"meter-indicator\"] {\n      background: var(--tone-danger);\n    }\n    &[data-strength=\"2\"] [data-slot=\"meter-indicator\"] {\n      background: var(--tone-warning);\n    }\n    &[data-strength=\"3\"] [data-slot=\"meter-indicator\"],\n    &[data-strength=\"4\"] [data-slot=\"meter-indicator\"] {\n      background: var(--tone-success);\n    }\n  }\n\n  .auth-divider {\n    display: flex;\n    align-items: center;\n    gap: 0.75rem;\n    margin: 0;\n    color: var(--ui-muted-foreground);\n    font-size: 0.8125rem;\n\n    &::before,\n    &::after {\n      content: \"\";\n      flex: 1;\n      border-block-start: 1px solid var(--ui-border);\n    }\n  }\n\n  .auth-alternatives {\n    display: grid;\n    gap: 0.5rem;\n\n    > * {\n      inline-size: 100%;\n    }\n  }\n\n  .auth-footer {\n    color: var(--ui-muted-foreground);\n    font-size: 0.875rem;\n    text-align: center;\n  }\n\n  /* Shared */\n\n  .template-brand {\n    font-weight: 650;\n  }\n\n  /* A template's text takes the skin's size and leading, whatever the page around it sets.\n     It lays out nothing itself: the app shell inside is the layout. */\n  .template-shell {\n    display: contents;\n    font-size: var(--ui-font-size);\n    line-height: var(--ui-line-height);\n  }\n\n  /* Dashboard */\n\n  .dashboard {\n    display: grid;\n    gap: 1.5rem;\n    min-width: 0;\n    container-type: inline-size;\n  }\n\n  /* A wrapper around the results (the web page redraws them as one) keeps the spacing. */\n  .dashboard-results {\n    display: grid;\n    gap: 1.5rem;\n    min-width: 0;\n  }\n\n  .dashboard-filters {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 0.5rem;\n  }\n\n  /* Four figures: one row of four, two rows of two, or one column; never three and one. */\n  .dashboard-figures {\n    display: grid;\n    gap: 1rem;\n    grid-template-columns: repeat(2, minmax(0, 1fr));\n\n    @container (min-width: 54rem) {\n      grid-template-columns: repeat(4, minmax(0, 1fr));\n    }\n\n    @container (max-width: 26rem) {\n      grid-template-columns: minmax(0, 1fr);\n    }\n  }\n\n  .dashboard-charts {\n    display: grid;\n    gap: 2rem 1.5rem;\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));\n\n    .dashboard-wide {\n      grid-column: 1 / -1;\n    }\n  }\n\n  .dashboard-table {\n    display: grid;\n    gap: 0.75rem;\n    min-width: 0;\n  }\n\n  .dashboard-section-title {\n    margin: 0;\n    font-size: 1rem;\n    font-weight: 600;\n  }\n\n  .dashboard-table-tools {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: space-between;\n    gap: 0.5rem;\n\n    .search-field {\n      flex: 1 1 14rem;\n      max-width: 22rem;\n    }\n  }\n\n  /* Settings */\n\n  .settings {\n    display: grid;\n    gap: 1.25rem;\n    min-width: 0;\n    max-inline-size: 60rem;\n  }\n\n  /* The tab list scrolls sideways on a phone instead of widening the page. */\n  .settings > * {\n    min-width: 0;\n  }\n\n  /* A thin sideways scrollbar under the tabs, with room for it once they scroll. */\n  .settings-tabs-frame {\n    & > [data-slot=\"scroll-area-scrollbar\"] {\n      block-size: 0.375rem;\n      padding: 1px;\n    }\n\n    &[data-overflow-x] > .settings-tabs-scroller {\n      padding-block-end: 0.375rem;\n    }\n  }\n\n  .settings-section {\n    display: grid;\n    gap: 1rem 2rem;\n    padding-block: 1.5rem;\n    border-block-end: 1px solid var(--ui-border);\n\n    @media (min-width: 52rem) {\n      grid-template-columns: 14rem minmax(0, 1fr);\n    }\n  }\n\n  .settings-section-intro {\n    h2 {\n      margin: 0 0 0.25rem;\n      font-size: 1rem;\n      font-weight: 600;\n    }\n\n    p {\n      margin: 0;\n      color: var(--ui-muted-foreground);\n      font-size: 0.875rem;\n    }\n  }\n\n  .settings-section-body {\n    display: grid;\n    gap: 1rem;\n    min-width: 0;\n  }\n\n  .settings-form {\n    display: grid;\n    gap: 1rem;\n    max-inline-size: 32rem;\n  }\n\n  .settings-avatar-row {\n    display: flex;\n    align-items: center;\n    gap: 1rem;\n  }\n\n  .settings-avatar {\n    inline-size: 3.5rem;\n    block-size: 3.5rem;\n    font-size: 1.125rem;\n  }\n\n  .settings-actions,\n  .settings-team-actions {\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: flex-end;\n    gap: 0.5rem;\n  }\n\n  /* A label and its switch on one row (UI SDK's field stacks its parts in a column). */\n  .settings-switch {\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n    justify-content: space-between;\n    gap: 1rem;\n    padding-block: 0.375rem;\n  }\n\n  .settings-fieldset {\n    display: grid;\n    gap: 0.25rem;\n    margin: 0;\n    padding: 0;\n    border: 0;\n\n    legend {\n      margin-block-end: 0.25rem;\n      color: var(--ui-muted-foreground);\n      font-size: 0.8125rem;\n      font-weight: 600;\n    }\n  }\n\n  .settings-usage {\n    display: grid;\n    gap: 0.875rem;\n  }\n\n  .settings-usage-label {\n    font-size: 0.875rem;\n  }\n\n  .settings-plan [data-slot=\"card-title\"],\n  .settings-plan .card-title {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n  }\n\n  .settings-muted {\n    margin: 0.125rem 0 0;\n    color: var(--ui-muted-foreground);\n    font-size: 0.875rem;\n  }\n\n  .settings-danger {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: space-between;\n    gap: 1rem;\n    padding: 1rem;\n    border: 1px solid color-mix(in oklch, var(--tone-danger) 45%, var(--ui-border));\n    border-radius: calc(var(--ui-radius) + 4px);\n  }\n\n  /* Admin */\n\n  .admin {\n    display: grid;\n    gap: 1.25rem;\n    min-width: 0;\n  }\n\n  .admin-tools {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: space-between;\n    gap: 0.5rem;\n\n    .search-field {\n      flex: 1 1 14rem;\n      max-width: 22rem;\n    }\n  }\n\n  .admin-tools-end {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 0.5rem;\n  }\n\n  /* The drawer's form scrolls in a UI SDK scroll area. */\n  .admin-drawer {\n    display: grid;\n    grid-template-rows: minmax(0, 1fr);\n    inline-size: min(100vw, 28rem);\n    block-size: 100%;\n    padding: 0;\n    background: var(--ui-background);\n  }\n\n  .admin-drawer-body {\n    display: grid;\n    align-content: start;\n    gap: 0.75rem;\n    padding: 1.5rem;\n  }\n\n  .admin-form {\n    display: grid;\n    gap: 1rem;\n  }\n\n  .admin-form-row {\n    display: grid;\n    gap: 1rem;\n    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));\n  }\n\n  .admin-form-actions {\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: flex-end;\n    gap: 0.5rem;\n    padding-block-start: 0.5rem;\n  }\n\n  /* Inbox */\n\n  .inbox-shell {\n    display: contents;\n  }\n\n  .inbox-article-subject:focus-visible {\n    outline: 2px solid var(--ui-ring-border);\n    outline-offset: 4px;\n    border-radius: 2px;\n  }\n\n  .inbox-compose {\n    inline-size: 100%;\n  }\n\n  /* Collapsed to icons, Compose is a square icon button like the rest of the rail. */\n  [data-sidebar=\"collapsed\"] .app-shell:not([data-narrow]) .inbox-compose {\n    inline-size: 2.25rem;\n    min-inline-size: 0;\n    padding: 0;\n    justify-content: center;\n    justify-self: center;\n    margin-inline: auto;\n  }\n\n  .inbox {\n    display: grid;\n    gap: 0;\n    min-width: 0;\n    min-block-size: 36rem;\n    margin: calc(-1 * var(--app-shell-pad, 1.5rem));\n    border-block-start: 1px solid var(--ui-border);\n\n    @media (min-width: 60rem) {\n      grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);\n    }\n  }\n\n  .inbox-list {\n    display: grid;\n    align-content: start;\n    gap: 0.75rem;\n    min-width: 0;\n    padding: 1rem;\n    border-inline-end: 1px solid var(--ui-border);\n  }\n\n  .inbox-list-header {\n    display: grid;\n    gap: 0.75rem;\n  }\n\n  .inbox-title {\n    margin: 0;\n    font-size: 1.25rem;\n    font-weight: 650;\n  }\n\n  .inbox-messages {\n    display: grid;\n    gap: 0.125rem;\n    inline-size: 100%;\n    max-inline-size: none;\n    padding: 0;\n    border: 0;\n    background: transparent;\n  }\n\n  .inbox-message {\n    display: grid;\n    gap: 0.125rem;\n    padding: 0.625rem 0.75rem;\n    border-radius: calc(var(--ui-radius) + 2px);\n    text-align: start;\n\n    &[data-highlighted] {\n      background: color-mix(in oklch, var(--ui-foreground) 5%, transparent);\n    }\n\n    &[aria-selected=\"true\"] {\n      background: color-mix(in oklch, var(--ui-primary) 12%, var(--ui-background));\n    }\n  }\n\n  .inbox-message-top {\n    display: flex;\n    justify-content: space-between;\n    gap: 0.5rem;\n    font-size: 0.875rem;\n\n    time {\n      color: var(--ui-muted-foreground);\n      font-size: 0.75rem;\n      font-variant-numeric: tabular-nums;\n    }\n  }\n\n  .inbox-from {\n    font-weight: 500;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n\n    [data-unread] & {\n      font-weight: 650;\n    }\n  }\n\n  .inbox-subject {\n    display: flex;\n    align-items: center;\n    gap: 0.375rem;\n    font-size: 0.875rem;\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n\n    [data-unread] & {\n      font-weight: 600;\n    }\n  }\n\n  .inbox-dot {\n    flex-shrink: 0;\n    inline-size: 0.5rem;\n    block-size: 0.5rem;\n    border-radius: 50%;\n    background: var(--ui-primary);\n  }\n\n  .inbox-preview {\n    display: -webkit-box;\n    overflow: hidden;\n    color: var(--ui-muted-foreground);\n    font-size: 0.8125rem;\n    -webkit-line-clamp: 2;\n    -webkit-box-orient: vertical;\n  }\n\n  .inbox-reader {\n    min-width: 0;\n    padding: 1rem 1.5rem 2rem;\n  }\n\n  .inbox-article {\n    display: grid;\n    gap: 1.25rem;\n    max-inline-size: 44rem;\n  }\n\n  /* In a narrow reader the actions are icons, named by their hidden labels, on one line;\n     Back keeps its words. */\n  .inbox-reader {\n    container-type: inline-size;\n  }\n\n  @container (max-width: 34rem) {\n    .inbox-actions {\n      flex-wrap: nowrap;\n    }\n\n    .inbox-action-label {\n      position: absolute;\n      width: 1px;\n      height: 1px;\n      overflow: hidden;\n      clip-path: inset(50%);\n      white-space: nowrap;\n    }\n  }\n\n  .inbox-actions {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    gap: 0.25rem;\n    padding-block-end: 0.75rem;\n    border-block-end: 1px solid var(--ui-border);\n  }\n\n  .inbox-back-icon {\n    scale: -1 1;\n\n    &:dir(rtl) {\n      scale: 1;\n    }\n  }\n\n  .inbox-article-header {\n    display: grid;\n    gap: 0.75rem;\n    justify-items: start;\n  }\n\n  .inbox-article-subject {\n    margin: 0;\n    font-size: 1.375rem;\n    font-weight: 650;\n    line-height: 1.25;\n    text-wrap: balance;\n  }\n\n  .inbox-sender {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    gap: 0.75rem;\n    inline-size: 100%;\n\n    > div {\n      display: grid;\n      flex: 1;\n    }\n\n    time {\n      color: var(--ui-muted-foreground);\n      font-size: 0.8125rem;\n    }\n  }\n\n  .inbox-email {\n    color: var(--ui-muted-foreground);\n    font-size: 0.8125rem;\n  }\n\n  .inbox-body {\n    margin: 0;\n    line-height: 1.6;\n    text-wrap: pretty;\n  }\n\n  .inbox-reply {\n    justify-self: start;\n  }\n\n  .inbox-composer {\n    inline-size: min(calc(100vw - 2rem), 36rem);\n  }\n\n  /* Narrow: the list, or the message with a way back. */\n  @media (max-width: 59.99rem) {\n    .inbox[data-reading] .inbox-list,\n    .inbox:not([data-reading]) .inbox-reader {\n      display: none;\n    }\n  }\n\n  @media (min-width: 60rem) {\n    .inbox-back {\n      display: none;\n    }\n  }\n\n  /* Chat app */\n\n  .chat-app-template {\n    --chat-thread-height: 30rem;\n    display: grid;\n    grid-template-columns: minmax(0, 1fr);\n    gap: 1rem;\n    padding: 1rem;\n    min-width: 0;\n    background: var(--ui-background);\n    color: var(--ui-foreground);\n\n    @media (min-width: 56rem) {\n      grid-template-columns: 15rem minmax(0, 1fr);\n    }\n  }\n\n  .chat-app-main {\n    display: grid;\n    align-content: start;\n    gap: 0.75rem;\n    min-width: 0;\n  }\n\n  /* Pricing */\n\n  .pricing {\n    container-type: inline-size;\n    display: grid;\n    grid-template-columns: minmax(0, 1fr);\n    gap: 3rem;\n    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);\n    background: var(--ui-background);\n    color: var(--ui-foreground);\n  }\n\n  .pricing-header {\n    display: grid;\n    justify-items: center;\n    gap: 1rem;\n    text-align: center;\n  }\n\n  .pricing-title {\n    margin: 0;\n    max-inline-size: 20ch;\n    font-size: clamp(1.75rem, 4vw, 2.5rem);\n    font-weight: 700;\n    line-height: 1.1;\n    text-wrap: balance;\n  }\n\n  .pricing-lede {\n    margin: 0;\n    color: var(--ui-muted-foreground);\n  }\n\n  /* In the label's own color: a tone here would sit on whatever the selected segment is. */\n  .pricing-save {\n    margin-inline-start: 0.25rem;\n    font-size: 0.8125rem;\n    font-weight: 600;\n  }\n\n  /* Four plans: four across, two by two, or one column; never three and one. */\n  .pricing-plans {\n    display: grid;\n    gap: 1rem;\n    grid-template-columns: repeat(2, minmax(0, 1fr));\n\n    @container (min-width: 62rem) {\n      grid-template-columns: repeat(4, minmax(0, 1fr));\n    }\n\n    @container (max-width: 34rem) {\n      grid-template-columns: minmax(0, 1fr);\n    }\n\n    margin: 0;\n    padding: 0;\n    list-style: none;\n  }\n\n  .pricing-plan {\n    display: grid;\n    grid-template-rows: auto auto auto auto 1fr;\n    gap: 0.875rem;\n    padding: 1.5rem;\n    border: 1px solid var(--ui-border);\n    border-radius: calc(var(--ui-radius) + 8px);\n    background: var(--ui-background);\n\n    &[data-recommended] {\n      border-color: var(--ui-primary);\n      box-shadow: 0 0 0 1px var(--ui-primary), var(--ui-shadow);\n    }\n  }\n\n  .pricing-plan-head {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    gap: 0.5rem;\n  }\n\n  .pricing-plan-name {\n    margin: 0;\n    font-size: 1.125rem;\n    font-weight: 650;\n  }\n\n  /* Equal-height description and price rows, so every card's button lines up. */\n  .pricing-plan-description {\n    min-block-size: 2lh;\n    margin: 0;\n    color: var(--ui-muted-foreground);\n    font-size: 0.875rem;\n  }\n\n  .pricing-price {\n    display: grid;\n    gap: 0.25rem;\n    margin: 0;\n  }\n\n  .pricing-amount {\n    font-size: 2rem;\n    font-weight: 700;\n    line-height: 1;\n  }\n\n  .pricing-per {\n    color: var(--ui-muted-foreground);\n    font-size: 0.8125rem;\n  }\n\n  .pricing-cta {\n    inline-size: 100%;\n    text-decoration: none;\n  }\n\n  .pricing-features {\n    display: grid;\n    align-content: start;\n    gap: 0.5rem;\n    margin: 0;\n    padding: 0;\n    list-style: none;\n    font-size: 0.875rem;\n\n    li {\n      display: flex;\n      align-items: start;\n      gap: 0.5rem;\n    }\n\n    .uiset-icon {\n      margin-block-start: 0.15rem;\n      color: var(--tone-success);\n    }\n  }\n\n  .pricing-section-title {\n    margin: 0 0 1rem;\n    font-size: 1.25rem;\n    font-weight: 650;\n  }\n\n  /* Positioned, so the table's screen-reader text (absolutely placed) stays inside it: in a\n     positioned container, it widened that container's scroll width to the whole table's. */\n  .pricing-table-frame {\n    border: 1px solid var(--ui-border);\n    border-radius: calc(var(--ui-radius) + 4px);\n  }\n\n  .pricing-table-scroller {\n    position: relative;\n  }\n\n  .pricing-table {\n    inline-size: 100%;\n    border-collapse: collapse;\n    font-size: 0.875rem;\n\n    th,\n    td {\n      padding: 0.75rem 1rem;\n      border-block-end: 1px solid var(--ui-border);\n      text-align: center;\n      white-space: nowrap;\n    }\n\n    th:first-child {\n      padding-inline-start: 1rem;\n      text-align: start;\n      font-weight: 500;\n    }\n\n    thead th {\n      font-weight: 600;\n    }\n\n    .uiset-icon {\n      color: var(--tone-success);\n      vertical-align: middle;\n    }\n  }\n\n  .pricing-no {\n    color: var(--ui-muted-foreground);\n  }\n\n  .pricing-faq {\n    max-inline-size: 44rem;\n    margin-inline: auto;\n    inline-size: 100%;\n\n    /* The questions use the section's width (UI SDK caps an accordion at 28rem). */\n    [data-slot=\"accordion\"] {\n      max-inline-size: none;\n    }\n  }\n\n  /* IDE */\n  .template-ide {\n    display: grid;\n    grid-template-rows: auto 1fr auto;\n    block-size: min(46rem, calc(100dvh - 8rem));\n    min-block-size: 30rem;\n    overflow: hidden;\n    border: 1px solid var(--ui-border);\n    border-radius: calc(var(--ui-radius) + 6px);\n    background: var(--ui-background);\n    color: var(--ui-foreground);\n  }\n\n  .template-ide-header {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: space-between;\n    gap: 0.5rem 1rem;\n    padding: 0.375rem 0.75rem;\n    border-block-end: 1px solid var(--ui-border);\n  }\n\n  .template-ide-project {\n    display: inline-flex;\n    align-items: center;\n    gap: 0.375rem;\n    font-weight: 600;\n\n    .uiset-icon {\n      inline-size: 1rem;\n      color: var(--ui-muted-foreground);\n    }\n  }\n\n  .template-ide-layout,\n  .template-ide-main {\n    min-block-size: 0;\n    block-size: 100%;\n  }\n\n  .template-ide-side {\n    background: color-mix(in oklch, var(--ui-muted) 35%, var(--ui-background));\n    border-inline-end: 1px solid var(--ui-border);\n  }\n\n  .template-ide-side > .ide-files {\n    block-size: 100%;\n  }\n\n  .template-ide-main [data-slot=\"resizable-panel\"] {\n    display: grid;\n    min-block-size: 0;\n  }\n\n  .template-ide-panel {\n    display: grid;\n    grid-template-rows: auto 1fr;\n    min-block-size: 0;\n  }\n\n  /* Each panel scrolls in a UI SDK scroll area. */\n  .template-ide-panel-body {\n    display: grid;\n    min-block-size: 0;\n  }\n\n  .template-ide-count {\n    min-inline-size: 1.25rem;\n    padding-inline: 0.375rem;\n    border-radius: 999px;\n    background: var(--ui-muted);\n    font-size: 0.75rem;\n    font-variant-numeric: tabular-nums;\n  }\n\n  .template-ide-outline {\n    display: grid;\n    margin: 0;\n    padding: 0.25rem;\n    list-style: none;\n\n    [data-slot=\"button\"] {\n      justify-content: flex-start;\n      inline-size: 100%;\n      font-family: var(--ui-font-mono);\n      font-size: 0.8125rem;\n    }\n  }\n\n  .template-ide-line {\n    margin-inline-start: auto;\n    color: var(--ui-muted-foreground);\n    font-family: var(--ui-font-sans, inherit);\n    font-size: 0.75rem;\n  }\n\n  /* Project board */\n\n  .project {\n    display: grid;\n    gap: 1rem;\n    min-width: 0;\n\n    .page-header {\n      margin-block-end: 0.5rem;\n    }\n  }\n\n  .project-actions {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    gap: 0.75rem;\n  }\n\n  /* Members overlap a little, each ringed in the page's color so the edges read. */\n  .project-members {\n    display: flex;\n    margin: 0;\n    padding: 0;\n    list-style: none;\n\n    li + li {\n      margin-inline-start: -0.375rem;\n    }\n  }\n\n  .project-member {\n    box-shadow: 0 0 0 2px var(--ui-background);\n  }\n\n  .project-progress {\n    max-inline-size: 30rem;\n  }\n\n  .project-progress-label {\n    font-size: 0.875rem;\n    font-weight: 500;\n  }\n\n  .project .board-toolbar {\n    .project-view-switch {\n      margin-inline-start: auto;\n    }\n\n    /* The web page's search element and its person filter (a select in a field), sized\n       as React's toolbar sizes its own. */\n    > uiset-search-field {\n      flex: 1 1 14rem;\n      max-width: 22rem;\n    }\n\n    > [data-slot=\"field\"] {\n      inline-size: 12rem;\n    }\n  }\n\n  .project-view {\n    min-width: 0;\n  }\n\n  /* Four columns share a wide page instead of scrolling it, down to 11.5rem each so they fit\n     beside the site's and the template's sidebars at 1440 (at 13rem, Done was cut off);\n     narrower pages scroll the board. */\n  .project .board-lanes {\n    grid-auto-columns: minmax(11.5rem, 1fr);\n  }\n\n  .project-overdue {\n    color: var(--tone-danger);\n    font-weight: 600;\n  }\n\n  /* Calendar */\n\n  .calendar-sidebar {\n    display: grid;\n    align-content: start;\n    gap: 1.25rem;\n    min-width: 0;\n  }\n\n  .calendar-new {\n    inline-size: 100%;\n  }\n\n  /* Collapsed to icons, New event is a square icon button and the rest waits for the\n     sidebar to open again. */\n  [data-sidebar=\"collapsed\"] .app-shell:not([data-narrow]) {\n    .calendar-new {\n      inline-size: 2.25rem;\n      min-inline-size: 0;\n      padding: 0;\n      justify-content: center;\n      justify-self: center;\n      margin-inline: auto;\n    }\n\n    .calendar-mini,\n    .calendar-side-section {\n      display: none;\n    }\n  }\n\n  /* The small month fills the sidebar's width, with days a fingertip can still hit. */\n  .calendar-sidebar .calendar-mini {\n    --calendar-cell: 1.875rem;\n    justify-self: center;\n    inline-size: max-content;\n    padding: 0;\n    border: 0;\n    background: transparent;\n\n    [data-slot=\"calendar-heading\"] {\n      font-size: 0.875rem;\n    }\n\n    [data-slot=\"calendar-previous\"],\n    [data-slot=\"calendar-next\"] {\n      inline-size: 2rem;\n      block-size: 2rem;\n    }\n\n    :is([data-slot=\"calendar-weekday\"], [data-slot=\"calendar-day\"]) {\n      inline-size: var(--calendar-cell);\n      block-size: var(--calendar-cell);\n      font-size: 0.8125rem;\n    }\n\n    [data-slot=\"calendar-weekday\"] {\n      block-size: 1.5rem;\n      font-size: 0.75rem;\n    }\n  }\n\n  .calendar-side-section {\n    display: grid;\n    gap: 0.375rem;\n  }\n\n  .calendar-list {\n    display: grid;\n    gap: 2px;\n  }\n\n  /* Each calendar's checkbox wears its color: chart slots keep 3:1 against the page. */\n  .calendar-list-item {\n    align-items: center;\n    min-block-size: 2rem;\n    padding-inline: 0.5rem;\n    border-radius: var(--ui-radius);\n    cursor: pointer;\n\n    &:hover {\n      background: var(--ui-muted);\n    }\n\n    [data-slot=\"checkbox\"] {\n      --ui-primary: var(--series);\n      --ui-primary-foreground: var(--ui-background);\n      border-color: var(--series);\n    }\n  }\n\n  .calendar-upcoming {\n    display: grid;\n    gap: 2px;\n    margin: 0;\n    padding: 0;\n    list-style: none;\n  }\n\n  /* A UI SDK button laid out as a list row: two lines, from the start, as tall as they are. */\n  .calendar-upcoming-item {\n    position: relative;\n    display: grid;\n    justify-content: stretch;\n    justify-items: start;\n    align-items: start;\n    gap: 0.0625rem;\n    inline-size: 100%;\n    block-size: auto;\n    padding: 0.375rem 0.5rem 0.375rem 1rem;\n    white-space: normal;\n    font-weight: inherit;\n    border: 0;\n    border-radius: var(--ui-radius);\n    background: transparent;\n    color: var(--ui-foreground);\n    font: inherit;\n    text-align: start;\n    cursor: pointer;\n\n    /* The calendar's color, as a short bar inset from the corners. */\n    &::before {\n      content: \"\";\n      position: absolute;\n      inset-block: 0.5rem;\n      inset-inline-start: 0.375rem;\n      inline-size: 3px;\n      border-radius: 999px;\n      background: var(--series);\n    }\n\n    &:hover {\n      background: var(--ui-muted);\n    }\n\n    &:focus-visible {\n      outline: 2px solid var(--ui-ring-border);\n      outline-offset: -2px;\n    }\n  }\n\n  .calendar-upcoming-title {\n    overflow: hidden;\n    font-size: 0.875rem;\n    font-weight: 500;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n  }\n\n  .calendar-upcoming-when,\n  .calendar-upcoming-empty {\n    margin: 0;\n    color: var(--ui-muted-foreground);\n    font-size: 0.75rem;\n    /* Its own weight: a skin may make its button bold. */\n    font-weight: 400;\n  }\n\n  .calendar-upcoming-empty {\n    padding-inline: 0.5rem;\n  }\n\n  /* Tall enough for the whole working day, 8 AM to 8 PM, without scrolling. */\n  .calendar-app {\n    --schedule-height: 40rem;\n    display: grid;\n    gap: 1rem;\n    min-width: 0;\n  }\n\n  /* One New event per page: the sidebar's while it shows, the toolbar's once the sidebar\n     moves into the drawer. */\n  @media not (max-width: 48rem) {\n    .calendar-app .scheduler-actions > :is([data-slot=\"button\"], ui-button) {\n      display: none;\n    }\n  }\n}\n",
      "type": "registry:file",
      "target": "@ui/templates/templates.css"
    },
    {
      "path": "registry/uiset/ui/shell/icons.tsx",
      "content": "import { iconPaths, type IconName } from \"./icon-paths\"\n\nfunction Icon({ name, className }: { name: IconName; className?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 24 24\"\n      aria-hidden=\"true\"\n      focusable=\"false\"\n      className={[\"uiset-icon\", className].filter(Boolean).join(\" \")}\n    >\n      <path d={iconPaths[name]} />\n    </svg>\n  )\n}\n\nexport { Icon }\nexport type { IconName }\n",
      "type": "registry:file",
      "target": "@ui/shell/icons.tsx"
    },
    {
      "path": "registry/uiset/ui/shell/icon-paths.ts",
      "content": "// UISet's icons as SVG path data on a 24×24 grid, stroked: framework-free, so the React\n// Icon and the web elements draw the same shapes.\nconst iconPaths = {\n  // Text editing (the rich text editor's toolbar).\n  bold: \"M7 5h6a3.5 3.5 0 0 1 0 7H7zM7 12h7a3.5 3.5 0 0 1 0 7H7z\",\n  italic: \"M10 5h8M6 19h8M14 5l-4 14\",\n  underline: \"M7 5v6a5 5 0 0 0 10 0V5M5 20h14\",\n  strike: \"M5 12h14M16 7a4 4 0 0 0-3.5-2h-1A3.5 3.5 0 0 0 8 8.5c0 1.4.8 2.4 2.5 3M8 17a4 4 0 0 0 3.5 2h1a3.5 3.5 0 0 0 3.5-3.5c0-.6-.1-1.1-.4-1.5\",\n  \"code-inline\": \"M9 8l-4 4 4 4M15 8l4 4-4 4\",\n  link: \"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1\",\n  \"list-bullet\": \"M9 6h11M9 12h11M9 18h11M4.5 6v.01M4.5 12v.01M4.5 18v.01\",\n  \"list-ordered\": \"M10 6h10M10 12h10M10 18h10M4 4.5l1.5-.5v4.5M4 15a1.3 1.3 0 0 1 2.4.6c0 .8-2.4 1.7-2.4 2.9h2.6\",\n  \"list-check\": \"M11 6h9M11 12h9M11 18h9M3.5 6l1.5 1.5L8 4.5M3.5 12l1.5 1.5 3-3M3.5 18l1.5 1.5 3-3\",\n  quote: \"M6 7h4v4c0 3-1.3 5-4 6M14 7h4v4c0 3-1.3 5-4 6\",\n  undo: \"M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3\",\n  redo: \"M15 14l5-5-5-5M20 9H10a6 6 0 0 0 0 12h3\",\n  image: \"M4 5h16v14H4zM4 16l5-5 4 4 3-3 4 4M15 9.5v.01\",\n  \"code-block\": \"M4 5h16v14H4zM9.5 10l-2 2 2 2M14.5 10l2 2-2 2\",\n  rule: \"M4 12h16M8 8h8M8 16h8\",\n  menu: \"M4 7h16M4 12h16M4 17h16\",\n  sidebar: \"M4 5h16v14H4zM9 5v14\",\n  chevron: \"M9 6l6 6-6 6\",\n  search: \"M11 18a7 7 0 1 1 0-14 7 7 0 0 1 0 14zM20 20l-4-4\",\n  close: \"M6 6l12 12M18 6L6 18\",\n  copy: \"M8 8h11v11H8zM5 16V5h11\",\n  check: \"M5 12.5l4.5 4.5L19 7.5\",\n  info: \"M12 11v6M12 7.5v.01M12 21a9 9 0 1 1 0-18 9 9 0 0 1 0 18z\",\n  success: \"M8 12.5l2.5 2.5L16 9.5M12 21a9 9 0 1 1 0-18 9 9 0 0 1 0 18z\",\n  warning:\n    \"M12 9v4M12 16.5v.01M10.3 4.2L2.6 18a2 2 0 0 0 1.7 3h15.4a2 2 0 0 0 1.7-3L13.7 4.2a2 2 0 0 0-3.4 0z\",\n  danger: \"M15 9l-6 6M9 9l6 6M12 21a9 9 0 1 1 0-18 9 9 0 0 1 0 18z\",\n  up: \"M7 14l5-5 5 5\",\n  down: \"M7 10l5 5 5-5\",\n  inbox: \"M4 13l2.5-7h11l2.5 7v6H4zM4 13h5l1 2h4l1-2h5\",\n  more: \"M4.8 12a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0M10.8 12a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0M16.8 12a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0\",\n  columns: \"M4 5h16v14H4zM10 5v14M15 5v14\",\n  download: \"M12 4v11M7 10l5 5 5-5M5 20h14\",\n  upload: \"M12 15V4M7 9l5-5 5 5M5 20h14\",\n  retry: \"M20 12a8 8 0 1 1-8-8c2.2 0 4.3.9 5.9 2.4L20 8.5M20 4v4.5h-4.5\",\n  filter: \"M4 6h16M7 12h10M10 18h4\",\n  home: \"M4 11l8-7 8 7M6 9.5V20h12V9.5M10 20v-5h4v5\",\n  users: \"M9 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M16 4.5a3.5 3.5 0 0 1 0 6.5M21 20c0-2.6-1.6-4.8-4-5.6\",\n  orders: \"M6 4h12l1 16H5zM9 8a3 3 0 0 0 6 0\",\n  reports: \"M5 20V10M12 20V4M19 20v-7\",\n  settings: \"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM19.4 13.5l1.6 1.2-2 3.4-1.9-.7a7 7 0 0 1-2 1.2l-.3 2h-4l-.3-2a7 7 0 0 1-2-1.2l-1.9.7-2-3.4 1.6-1.2a7 7 0 0 1 0-3l-1.6-1.2 2-3.4 1.9.7a7 7 0 0 1 2-1.2l.3-2h4l.3 2a7 7 0 0 1 2 1.2l1.9-.7 2 3.4-1.6 1.2a7 7 0 0 1 0 3z\",\n  mail: \"M4 6h16v12H4zM4 7l8 6 8-6\",\n  star: \"M12 4l2.5 5.2 5.5.8-4 3.9.9 5.6L12 16.8 7.1 19.5l.9-5.6-4-3.9 5.5-.8z\",\n  archive: \"M4 5h16v4H4zM6 9v10h12V9M10 13h4\",\n  trash: \"M5 7h14M10 7V5h4v2M7 7l1 13h8l1-13\",\n  plus: \"M12 5v14M5 12h14\",\n  minus: \"M5 12h14\",\n  fit: \"M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5\",\n  folder: \"M3.5 6.5a1.5 1.5 0 0 1 1.5-1.5h4l2 2h8a1.5 1.5 0 0 1 1.5 1.5v9a1.5 1.5 0 0 1-1.5 1.5H5a1.5 1.5 0 0 1-1.5-1.5z\",\n  file: \"M6 3.5h8l4 4v13H6zM14 3.5v4h4\",\n  branch: \"M6 4v16M18 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM18 8c0 5-6 5-12 8\",\n  grip: \"M9 6.5v.01M15 6.5v.01M9 12v.01M15 12v.01M9 17.5v.01M15 17.5v.01\",\n  edit: \"M5 19h4L19 9l-4-4L5 15zM14 6l4 4\",\n  send: \"M4 12l16-8-6 16-2-7z\",\n  card: \"M3 6h18v12H3zM3 10h18M7 15h4\",\n  shield: \"M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6z\",\n  lock: \"M7.5 11V8a4.5 4.5 0 0 1 9 0v3M5.5 11h13v9.5h-13z\",\n  bell: \"M6 16V11a6 6 0 0 1 12 0v5l2 2H4zM10 20a2 2 0 0 0 4 0\",\n}\n\ntype IconName = keyof typeof iconPaths\n\n/** An icon as an SVG element, for code without React. */\nfunction iconElement(name: IconName, className?: string) {\n  const svg = document.createElementNS(\"http://www.w3.org/2000/svg\", \"svg\")\n  svg.setAttribute(\"viewBox\", \"0 0 24 24\")\n  svg.setAttribute(\"aria-hidden\", \"true\")\n  svg.setAttribute(\"focusable\", \"false\")\n  svg.setAttribute(\"class\", [\"uiset-icon\", className].filter(Boolean).join(\" \"))\n  const path = document.createElementNS(\"http://www.w3.org/2000/svg\", \"path\")\n  path.setAttribute(\"d\", iconPaths[name])\n  svg.append(path)\n  return svg\n}\n\nexport { iconElement, iconPaths }\nexport type { IconName }\n",
      "type": "registry:file",
      "target": "@ui/shell/icon-paths.ts"
    },
    {
      "path": "registry/uiset/ui/shell/shell.css",
      "content": "@layer ui-sdk, uiset.tokens, uiset.base, uiset.skin;\n\n@layer uiset.base {\n  :where([data-uiset]) {\n    /* Status colors: text and edges hold 4.5:1 / 3:1 on --ui-background in each scheme. */\n    /* Dark values also clear 4.5:1 on the mid-dark Blueprint and Studio panels. */\n    --tone-info: light-dark(oklch(0.48 0.15 255), oklch(0.86 0.08 240));\n    --tone-success: light-dark(oklch(0.47 0.12 150), oklch(0.87 0.11 150));\n    --tone-warning: light-dark(oklch(0.5 0.12 70), oklch(0.89 0.11 85));\n    --tone-danger: light-dark(oklch(0.46 0.19 27), oklch(0.86 0.08 25));\n    --tone-neutral: var(--ui-muted-foreground);\n  }\n\n  .uiset-visually-hidden {\n    position: absolute;\n    width: 1px;\n    height: 1px;\n    overflow: hidden;\n    clip-path: inset(50%);\n    white-space: nowrap;\n  }\n\n  .uiset-icon {\n    width: 1rem;\n    height: 1rem;\n    flex-shrink: 0;\n    fill: none;\n    stroke: currentColor;\n    stroke-width: 1.75;\n    stroke-linecap: round;\n    stroke-linejoin: round;\n  }\n\n  /* App shell */\n\n  .app-shell {\n    --sidebar-width: 15rem;\n    display: grid;\n    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);\n    min-height: var(--app-shell-height, 100dvh);\n    background: var(--ui-background);\n    color: var(--ui-foreground);\n\n    &[data-narrow] {\n      grid-template-columns: minmax(0, 1fr);\n    }\n  }\n\n  [data-sidebar=\"collapsed\"] .app-shell:not([data-narrow]) {\n    --sidebar-width: 3.75rem;\n  }\n\n  .app-sidebar,\n  .app-drawer {\n    display: flex;\n    flex-direction: column;\n    gap: 0.75rem;\n    min-width: 0;\n    padding: 0.75rem;\n    border-inline-end: 1px solid var(--ui-border);\n    background: color-mix(in oklab, var(--ui-muted) 55%, var(--ui-background));\n    overflow: hidden;\n  }\n\n  .app-sidebar-top {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    gap: 0.5rem;\n    min-height: 2.25rem;\n  }\n\n  .app-brand {\n    min-width: 0;\n    margin: 0;\n    overflow: hidden;\n    font-weight: 600;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n  }\n\n  [data-sidebar=\"collapsed\"] .app-sidebar .app-brand {\n    display: none;\n  }\n\n  .app-sidebar-toggle,\n  .app-menu-button {\n    flex-shrink: 0;\n    width: 2.25rem;\n    height: 2.25rem;\n    padding: 0;\n  }\n\n  .app-main {\n    display: flex;\n    flex-direction: column;\n    min-width: 0;\n  }\n\n  /* Its padding counts in its height, with or without a page's box-sizing reset. */\n  .app-header {\n    box-sizing: border-box;\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    gap: 0.75rem;\n    min-height: 3.25rem;\n    padding: 0.5rem 1rem;\n    border-bottom: 1px solid var(--ui-border);\n  }\n\n  /* The padding is a variable, so a full-bleed page (an inbox) can cancel it exactly. */\n  .app-content {\n    --app-shell-pad: clamp(1rem, 3vw, 2rem);\n    flex: 1;\n    min-width: 0;\n    padding: var(--app-shell-pad);\n  }\n\n  .sidebar-nav {\n    display: grid;\n    gap: 1rem;\n  }\n\n  .sidebar-group {\n    display: grid;\n    gap: 0.25rem;\n\n    ul {\n      display: grid;\n      gap: 2px;\n      margin: 0;\n      padding: 0;\n      list-style: none;\n    }\n  }\n\n  .sidebar-group-title {\n    margin: 0;\n    padding-inline: 0.5rem;\n    font-size: 0.75rem;\n    font-weight: 600;\n    color: var(--ui-muted-foreground);\n  }\n\n  /* Collapsed to icons: group titles leave the layout (a hidden title used to keep its\n     width and push the icons off center), and a rule separates the groups instead. */\n  [data-sidebar=\"collapsed\"] .app-sidebar {\n    .sidebar-group-title {\n      position: absolute;\n      width: 1px;\n      height: 1px;\n      overflow: hidden;\n      clip-path: inset(50%);\n      white-space: nowrap;\n    }\n\n    .sidebar-nav {\n      gap: 0.5rem;\n    }\n\n    .sidebar-group + .sidebar-group {\n      padding-block-start: 0.5rem;\n      border-block-start: 1px solid var(--ui-border);\n    }\n  }\n\n  /* A tooltip trigger, so UI SDK's stylesheet would draw it as a button: reset that. */\n  .sidebar-link {\n    display: flex;\n    align-items: center;\n    justify-content: flex-start;\n    gap: 0.625rem;\n    width: 100%;\n    height: auto;\n    min-height: 2.25rem;\n    padding: 0.375rem 0.5rem;\n    border: 0;\n    border-radius: var(--ui-radius);\n    background: transparent;\n    color: var(--ui-foreground);\n    font-weight: 400;\n    text-decoration: none;\n\n    &:hover {\n      background: var(--ui-muted);\n    }\n\n    &[aria-current=\"page\"] {\n      position: relative;\n      background: var(--ui-muted);\n      font-weight: 600;\n\n      /* A short bar, inset from the corners (an inset shadow bent around them). */\n      &::before {\n        content: \"\";\n        position: absolute;\n        inset-block: 0.5rem;\n        inset-inline-start: 0;\n        inline-size: 3px;\n        border-radius: 999px;\n        background: var(--ui-primary);\n      }\n    }\n\n    &:focus-visible {\n      outline: 2px solid var(--ui-ring-border);\n      outline-offset: -2px;\n    }\n  }\n\n  .sidebar-icon {\n    display: inline-grid;\n    place-items: center;\n    width: 1.25rem;\n    flex-shrink: 0;\n  }\n\n  .sidebar-label {\n    flex: 1;\n    min-width: 0;\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n  }\n\n  .sidebar-badge {\n    font-size: 0.75rem;\n  }\n\n  /* Each link is a square icon button, centered in the rail under the toggle; the current\n     page shows by its fill and an accent icon (a side bar on a square reads as a glitch). */\n  [data-sidebar=\"collapsed\"] .app-sidebar {\n    .sidebar-link {\n      justify-content: center;\n      inline-size: 2.25rem;\n      min-block-size: 2.25rem;\n      margin-inline: auto;\n      padding: 0;\n\n      &[aria-current=\"page\"] {\n        color: color-mix(in oklch, var(--ui-primary) 55%, var(--ui-foreground));\n\n        &::before {\n          display: none;\n        }\n      }\n    }\n\n    .sidebar-label,\n    .sidebar-badge {\n      position: absolute;\n      width: 1px;\n      height: 1px;\n      overflow: hidden;\n      clip-path: inset(50%);\n    }\n  }\n\n  /* The tooltip repeats the visible label, so it only shows when labels are hidden. */\n  [data-sidebar=\"expanded\"] .sidebar-tooltip,\n  .app-drawer .sidebar-tooltip {\n    display: none;\n  }\n\n  /* Page structure */\n\n  .breadcrumbs ol {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    gap: 0.25rem;\n    margin: 0;\n    padding: 0;\n    list-style: none;\n    font-size: 0.875rem;\n  }\n\n  .breadcrumbs li {\n    display: inline-flex;\n    align-items: center;\n    gap: 0.25rem;\n    color: var(--ui-muted-foreground);\n\n    a {\n      color: inherit;\n      text-underline-offset: 0.2em;\n    }\n\n    [aria-current=\"page\"] {\n      color: var(--ui-foreground);\n      font-weight: 500;\n    }\n  }\n\n  .breadcrumbs-separator {\n    width: 0.875rem;\n    height: 0.875rem;\n  }\n\n  .page-header {\n    display: grid;\n    gap: 0.75rem;\n    margin-bottom: 1.5rem;\n  }\n\n  .page-header-row {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: flex-end;\n    justify-content: space-between;\n    gap: 1rem;\n  }\n\n  .page-header-title {\n    margin: 0;\n    font-size: clamp(1.5rem, 3vw, 1.875rem);\n    line-height: 1.15;\n    text-wrap: balance;\n  }\n\n  .page-header-description {\n    max-width: 42rem;\n    margin: 0.375rem 0 0;\n    color: var(--ui-muted-foreground);\n  }\n\n  .page-header-actions {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 0.5rem;\n  }\n\n  .card {\n    display: grid;\n    gap: 1rem;\n    min-width: 0;\n    padding: 1.25rem;\n    border: 1px solid var(--ui-border);\n    border-radius: calc(var(--ui-radius) + 6px);\n    background: var(--ui-background);\n  }\n\n  .card-header {\n    display: grid;\n    gap: 0.25rem;\n  }\n\n  .card-title {\n    margin: 0;\n    font-size: 1rem;\n    font-weight: 600;\n  }\n\n  .card-description {\n    margin: 0;\n    color: var(--ui-muted-foreground);\n    font-size: 0.875rem;\n  }\n\n  .card-footer {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 0.5rem;\n    padding-top: 1rem;\n    border-top: 1px solid var(--ui-border);\n  }\n\n  /* Data display */\n\n  .badge {\n    --badge-color: var(--tone-neutral);\n    display: inline-flex;\n    align-items: center;\n    gap: 0.25rem;\n    padding: 0.0625rem 0.5rem;\n    border: 1px solid color-mix(in oklab, var(--badge-color) 55%, transparent);\n    border-radius: min(999px, calc(var(--ui-radius) * 999));\n    background: color-mix(in oklab, var(--badge-color) 10%, var(--ui-background));\n    color: var(--badge-color);\n    font-size: 0.75rem;\n    font-weight: 600;\n    line-height: 1.5;\n    white-space: nowrap;\n\n    &[data-tone=\"info\"] {\n      --badge-color: var(--tone-info);\n    }\n\n    &[data-tone=\"success\"] {\n      --badge-color: var(--tone-success);\n    }\n\n    &[data-tone=\"warning\"] {\n      --badge-color: var(--tone-warning);\n    }\n\n    &[data-tone=\"danger\"] {\n      --badge-color: var(--tone-danger);\n    }\n  }\n\n  .count-badge {\n    position: relative;\n    display: inline-flex;\n    vertical-align: middle;\n  }\n\n  /* The solid button's colors: every skin already holds 4.5:1 between them. */\n  .count-badge-count {\n    position: absolute;\n    inset-block-start: 0;\n    inset-inline-end: 0;\n    translate: 40% -40%;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    box-sizing: border-box;\n    min-width: 1.125rem;\n    height: 1.125rem;\n    padding-inline: 0.3125rem;\n    border-radius: min(999px, calc(var(--ui-radius) * 999));\n    background: var(--uiset-solid-bg);\n    color: var(--uiset-solid-fg);\n    box-shadow: 0 0 0 2px var(--ui-background);\n    font-size: 0.6875rem;\n    font-weight: 600;\n    font-variant-numeric: tabular-nums;\n    line-height: 1;\n    white-space: nowrap;\n    pointer-events: none;\n\n    &:dir(rtl) {\n      translate: -40% -40%;\n    }\n\n    &[data-dot] {\n      min-width: 0.625rem;\n      width: 0.625rem;\n      height: 0.625rem;\n      padding: 0;\n      translate: 20% -20%;\n\n      &:dir(rtl) {\n        translate: -20% -20%;\n      }\n    }\n  }\n\n  /* Each avatar overlaps the one before it, with a ring of the page color between them. */\n  .avatar-group {\n    display: inline-flex;\n    align-items: center;\n    vertical-align: middle;\n\n    & > * {\n      box-shadow: 0 0 0 2px var(--ui-background);\n    }\n\n    /* A small overlap: more would cover the next avatar's initials. */\n    & > * + * {\n      margin-inline-start: calc(var(--ui-spacing) * -1);\n    }\n  }\n\n  .avatar-group-more {\n    font-variant-numeric: tabular-nums;\n  }\n\n  /* Content sits at the top, so figures in a row line up whether or not one has a trend. */\n  .stat {\n    display: grid;\n    align-content: start;\n    gap: 0.25rem;\n\n    p {\n      margin: 0;\n    }\n  }\n\n  .stat-label {\n    font-size: 0.875rem;\n    color: var(--ui-muted-foreground);\n  }\n\n  .stat-trend {\n    max-inline-size: 100%;\n  }\n\n  /* A standalone figure keeps proportional digits; tabular ones look loose this big. */\n  .stat-value {\n    font-size: 1.75rem;\n    font-weight: 650;\n    line-height: 1.15;\n  }\n\n  .stat-change {\n    display: inline-flex;\n    align-items: center;\n    gap: 0.25rem;\n    font-size: 0.875rem;\n    font-weight: 600;\n\n    &[data-good] {\n      color: var(--tone-success);\n    }\n\n    &[data-bad] {\n      color: var(--tone-danger);\n    }\n  }\n\n  .stat-period,\n  .stat-description {\n    color: var(--ui-muted-foreground);\n    font-weight: 400;\n  }\n\n  .stat-description {\n    font-size: 0.8125rem;\n  }\n\n  .empty-state {\n    display: grid;\n    justify-items: center;\n    gap: 0.5rem;\n    padding: 2.5rem 1rem;\n    text-align: center;\n  }\n\n  .empty-state-icon {\n    width: 2rem;\n    height: 2rem;\n    color: var(--ui-muted-foreground);\n  }\n\n  .empty-state-title {\n    margin: 0.25rem 0 0;\n    font-size: 1.0625rem;\n  }\n\n  .empty-state-description {\n    max-width: 28rem;\n    margin: 0;\n    color: var(--ui-muted-foreground);\n  }\n\n  .empty-state-actions {\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: center;\n    gap: 0.5rem;\n    margin-top: 0.5rem;\n  }\n\n  .skeleton {\n    display: block;\n    width: 100%;\n    border-radius: var(--ui-radius);\n    background: linear-gradient(\n        90deg,\n        var(--ui-muted) 0 35%,\n        color-mix(in oklab, var(--ui-muted), var(--ui-foreground) 8%) 50%,\n        var(--ui-muted) 65% 100%\n      )\n      0 0 / 300% 100%;\n    animation: skeleton-wave 1.6s ease-in-out infinite;\n  }\n\n  .skeleton-text {\n    display: grid;\n    gap: 0.5rem;\n\n    .skeleton {\n      height: 0.75rem;\n    }\n  }\n\n  @keyframes skeleton-wave {\n    from {\n      background-position: 100% 0;\n    }\n    to {\n      background-position: 0 0;\n    }\n  }\n\n  .description-list {\n    display: grid;\n    margin: 0;\n\n    &[data-layout=\"columns\"] .description-item {\n      display: grid;\n      grid-template-columns: minmax(8rem, 1fr) 2fr;\n      gap: 1rem;\n    }\n\n    dt {\n      color: var(--ui-muted-foreground);\n    }\n\n    dd {\n      margin: 0;\n      min-width: 0;\n      overflow-wrap: anywhere;\n    }\n  }\n\n  .description-item {\n    padding-block: 0.625rem;\n    border-bottom: 1px solid var(--ui-border);\n\n    &:last-child {\n      border-bottom: 0;\n    }\n  }\n\n  .item-list {\n    display: grid;\n    margin: 0;\n    padding: 0;\n    list-style: none;\n  }\n\n  .item {\n    display: flex;\n    align-items: center;\n    gap: 0.75rem;\n    min-height: 3rem;\n    padding-block: 0.625rem;\n    border-bottom: 1px solid var(--ui-border);\n\n    &:last-child {\n      border-bottom: 0;\n    }\n  }\n\n  .item-text {\n    display: grid;\n    flex: 1;\n    min-width: 0;\n  }\n\n  .item-title {\n    overflow: hidden;\n    color: var(--ui-foreground);\n    font-weight: 500;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n  }\n\n  a.item-title {\n    text-decoration: none;\n\n    &:hover {\n      text-decoration: underline;\n    }\n  }\n\n  .item-description,\n  .item-meta {\n    color: var(--ui-muted-foreground);\n    font-size: 0.8125rem;\n  }\n\n  .item-actions {\n    display: flex;\n    gap: 0.25rem;\n  }\n\n  .alert {\n    --alert-color: var(--tone-info);\n    display: grid;\n    grid-template-columns: auto minmax(0, 1fr) auto;\n    gap: 0.75rem;\n    align-items: start;\n    padding: 0.875rem 1rem;\n    position: relative;\n    overflow: hidden;\n    padding-inline-start: calc(1rem + 3px);\n    border: 1px solid color-mix(in oklab, var(--alert-color) 45%, var(--ui-border));\n    border-radius: calc(var(--ui-radius) + 4px);\n    background: color-mix(in oklab, var(--alert-color) 7%, var(--ui-background));\n\n    /* The accent is a straight bar the corners clip; a thick border would taper into them. */\n    &::before {\n      content: \"\";\n      position: absolute;\n      inset-block: 0;\n      inset-inline-start: 0;\n      inline-size: 4px;\n      background: var(--alert-color);\n    }\n\n    &[data-tone=\"success\"] {\n      --alert-color: var(--tone-success);\n    }\n\n    &[data-tone=\"warning\"] {\n      --alert-color: var(--tone-warning);\n    }\n\n    &[data-tone=\"danger\"] {\n      --alert-color: var(--tone-danger);\n    }\n  }\n\n  .alert-icon {\n    width: 1.25rem;\n    height: 1.25rem;\n    color: var(--alert-color);\n  }\n\n  .alert-body {\n    display: grid;\n    gap: 0.25rem;\n  }\n\n  .alert-title {\n    margin: 0;\n    font-weight: 600;\n  }\n\n  .alert-text {\n    color: var(--ui-foreground);\n  }\n\n  .alert-actions {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 0.5rem;\n    margin-top: 0.375rem;\n  }\n\n  .alert-dismiss {\n    width: 2rem;\n    height: 2rem;\n    padding: 0;\n  }\n\n  /* Sized in its own em so a key sits inside a line of text, not below it. */\n  .kbd {\n    display: inline-flex;\n    align-items: center;\n    min-width: 1.75em;\n    height: 1.75em;\n    justify-content: center;\n    padding-inline: 0.4em;\n    vertical-align: 0.125em;\n    line-height: 1;\n    border: 1px solid var(--ui-input);\n    border-bottom-width: 2px;\n    border-radius: calc(var(--ui-radius) / 2 + 2px);\n    background: var(--ui-background);\n    color: var(--ui-foreground);\n    font-family: var(--ui-font-mono);\n    font-size: 0.75rem;\n  }\n\n  .spinner {\n    display: inline-block;\n    flex-shrink: 0;\n    border: 2px solid color-mix(in oklab, var(--ui-foreground) 18%, transparent);\n    border-top-color: var(--ui-primary);\n    border-radius: 50%;\n    animation: spinner-turn 0.8s linear infinite;\n  }\n\n  @keyframes spinner-turn {\n    to {\n      rotate: 1turn;\n    }\n  }\n\n  .stepper {\n    container-type: inline-size;\n  }\n\n  .stepper ol {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 0.25rem 1rem;\n    margin: 0;\n    padding: 0;\n    list-style: none;\n  }\n\n  /* Marks line up across steps, whether a step has a description or not. */\n  .stepper-step {\n    align-items: flex-start;\n    gap: 0.625rem;\n    height: auto;\n    min-height: 2.75rem;\n    padding: 0.375rem 0.625rem 0.375rem 0.375rem;\n    text-align: start;\n  }\n\n  @container (max-width: 30rem) {\n    .stepper ol {\n      flex-direction: column;\n      flex-wrap: nowrap;\n    }\n  }\n\n  .stepper-mark {\n    box-sizing: border-box;\n    display: inline-grid;\n    place-items: center;\n    width: 1.75rem;\n    height: 1.75rem;\n    flex-shrink: 0;\n    border: 2px solid var(--ui-input);\n    border-radius: 50%;\n    font-size: 0.8125rem;\n    font-weight: 600;\n    font-variant-numeric: tabular-nums;\n  }\n\n  .stepper li[data-state=\"current\"] .stepper-mark {\n    border-color: var(--ui-primary);\n    color: var(--ui-primary);\n  }\n\n  .stepper li[data-state=\"complete\"] .stepper-mark {\n    border-color: var(--ui-primary);\n    background: var(--ui-primary);\n    color: var(--ui-primary-foreground);\n  }\n\n  /* The label's first line centers on the mark, whatever the page's line height. */\n  .stepper-text {\n    display: grid;\n    padding-block-start: max(0px, calc((1.75rem - 1lh) / 2));\n  }\n\n  .stepper-label {\n    font-weight: 600;\n  }\n\n  .stepper-description {\n    font-size: 0.75rem;\n    color: var(--ui-muted-foreground);\n  }\n\n  .search-field {\n    position: relative;\n    display: flex;\n    /* A row even as a UI SDK field (which stacks its parts), so the icon centers. */\n    flex-direction: row;\n    align-items: center;\n    width: 100%;\n\n    [data-slot=\"input\"] {\n      width: 100%;\n      padding-inline: 2.125rem 3rem;\n    }\n  }\n\n  .search-field-icon {\n    position: absolute;\n    inset-inline-start: 0.625rem;\n    color: var(--ui-muted-foreground);\n    pointer-events: none;\n  }\n\n  .search-field-clear {\n    position: absolute;\n    inset-inline-end: 0.25rem;\n    width: 1.75rem;\n    height: 1.75rem;\n    padding: 0;\n  }\n\n  /* The browser's own clear button would duplicate ours. */\n  .search-field input[type=\"search\"]::-webkit-search-cancel-button {\n    display: none;\n  }\n\n  .search-field-hint {\n    position: absolute;\n    inset-inline-end: 0.5rem;\n    pointer-events: none;\n  }\n\n  .copy-button {\n    gap: 0.375rem;\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    .skeleton,\n    .spinner {\n      animation-duration: 0s;\n    }\n\n    .spinner {\n      border-top-color: var(--ui-muted-foreground);\n    }\n  }\n\n  @media (forced-colors: active) {\n    .badge,\n    .alert,\n    .kbd {\n      border-color: CanvasText;\n    }\n\n    /* Shadows don't draw here, so the rings become real edges. */\n    .avatar-group > *,\n    .count-badge-count {\n      outline: 1px solid CanvasText;\n    }\n\n    .count-badge-count {\n      background: Canvas;\n      color: CanvasText;\n    }\n\n    .sidebar-link[aria-current=\"page\"] {\n      outline: 2px solid Highlight;\n    }\n\n    .stepper li[data-state=\"complete\"] .stepper-mark {\n      background: Highlight;\n      color: HighlightText;\n    }\n  }\n}\n",
      "type": "registry:file",
      "target": "@ui/shell/shell.css"
    }
  ],
  "type": "registry:block"
}